pkgs-ipredia-org / i2p

i2p
1 stars 1 forks source link

net.sf.launch4j.ExecException on x86_64 build #11

Open mattias-ohlsson opened 10 years ago

mattias-ohlsson commented 10 years ago
build:
launch4j:
buildexe:
     [echo] See the file "build.properties" if this step fails.
      [jar] Building MANIFEST-only jar: /builddir/build/BUILD/i2p-0.9.15/build/launchi2p.jar
 [launch4j] Compiling resources
 [launch4j] Generated resource file...
 [launch4j] 
 [launch4j] LANGUAGE 0, 1
 [launch4j] 2 RCDATA BEGIN "1.6.0\0" END
 [launch4j] 18 RCDATA BEGIN "1\0" END
 [launch4j] 27 RCDATA BEGIN "128\0" END
 [launch4j] 12 RCDATA BEGIN "-Djava.library.path=.;lib -DloggerFilenameOverride=logs/log-router-@.txt -Dorg.mortbay.http.Version.paranoid=true -Dorg.mortbay.util.FileResource.checkAliases=false\0" END
 [launch4j] 1 ICON DISCARDABLE "/builddir/build/BUILD/i2p-0.9.15/installer/resources/start.ico"
 [launch4j] 10 RCDATA BEGIN "I2P\0" END
 [launch4j] 21 RCDATA BEGIN "http://java.com/download\0" END
 [launch4j] 8 RCDATA BEGIN ".\0" END
 [launch4j] 20 RCDATA BEGIN "32\0" END
 [launch4j] 4 RCDATA BEGIN "true\0" END
 [launch4j] 6 RCDATA BEGIN "10\0" END
 [launch4j] 1 BITMAP "/builddir/build/BUILD/i2p-0.9.15/installer/resources/i2plogo.bmp"
 [launch4j] 101 RCDATA BEGIN "An error occurred while starting the application.\0" END
 [launch4j] 102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END
 [launch4j] 103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END
 [launch4j] 104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END
 [launch4j] 17 RCDATA BEGIN "true\0" END
 [launch4j] 
BUILD FAILED
/builddir/build/BUILD/i2p-0.9.15/build.xml:353: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/builddir/build/BUILD/i2p-0.9.15/installer/lib/launch4j/bin/windres": error=2, No such file or directory
    at net.sf.launch4j.Builder.build(Builder.java:144)
    at net.sf.launch4j.ant.Launch4jTask.execute(Launch4jTask.java:111)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/builddir/build/BUILD/i2p-0.9.15/installer/lib/launch4j/bin/windres": error=2, No such file or directory
    at net.sf.launch4j.Util.exec(Util.java:147)
    at net.sf.launch4j.Cmd.exec(Builder.java:205)
    at net.sf.launch4j.Builder.build(Builder.java:97)
    ... 17 more
Caused by: java.io.IOException: Cannot run program "/builddir/build/BUILD/i2p-0.9.15/installer/lib/launch4j/bin/windres": error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at java.lang.Runtime.exec(Runtime.java:620)
    at java.lang.Runtime.exec(Runtime.java:485)
    at net.sf.launch4j.Util.exec(Util.java:117)
    ... 19 more
Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 22 more

https://trac.i2p2.de/ticket/615

http://stackoverflow.com/questions/8142162/launch4j-maven-plugin-will-not-work-on-64-bit-linux-machine

mattias-ohlsson commented 10 years ago

i2p-0.9.15/build.properties:

# Building EXEs in x64 Linux requires that 32bit libraries are installed. In Debian,
# for example, installing the libc6-i386 package will satisfy this requirement.

# Uncomment the next line to prevent building EXEs (changing it to false will have no impact)
#noExe=true