Java - Launch4j,构建失败

时间:2014-06-13 12:37:06

标签: java ant exe launch4j antbuilder

我正在尝试从我的项目中创建一个可执行文件,但不幸的是我有这个失败:

 Buildfile: C:\02_DEV\R_5_2_3\DiagraDB\build.xml
    compile:
        [javac] Compiling 1 source file to C:\02_DEV\R_5_2_3\DiagraDB\bin
    dist:
          [jar] Building jar: C:\DiagraDB_build\lib\DiagraDB.jar
         [copy] Copying 1 file to C:\DiagraDB_build\mysql
     [launch4j] Compiling resources
     [launch4j] Linking
     [launch4j] C:\02_DEV\R_5_2_3\DiagraDB\launch4j\bin\ld.exe: C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\crt2.o: No such file: No such file or directory

    BUILD FAILED
    C:\02_DEV\R_5_2_3\DiagraDB\build.xml:125: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): C:\02_DEV\R_5_2_3\DiagraDB\launch4j\bin\ld.exe -mi386pe --oformat pei-i386 --subsystem windows -s C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\crt2.o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\head\guihead.o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\head\head.o C:\Users\MET4ABT\AppData\Local\Temp\launch4j5622103051739315213o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libmingw32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libgcc.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libmsvcrt.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libkernel32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libuser32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libadvapi32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libshell32.a -o C:\DiagraDB_build\DiagraDB.exe

    Total time: 6 seconds

我读过Launch4j / windres: how to set paths correctly?之类的东西,但我无法让它适合我的。{3}} (我有JDK版本7和Windows 7.)我感谢您对此问题的解决方案的建议。提前谢谢。

0 个答案:

没有答案