Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch4j maven plugin will not work on 64-bit linux machine

I am trying to use the maven Launch4j plugin version 1.5.0.1

When I build the pom on my windows box, there is no issue (my windows box has both 32-bit and 64-bit versions of Java installed). But when I build the pom on my linux box, I get this issue:

Stack trace: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.01.1..... Failed to build executable; please verify your configuration

Cause by: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/home/hudson/.m2/repository/org/bluestemsoftware/open/maven/plugin/launch4j-plugin/1.5.0.1/launch4j-plugin-1.5.0.1-workdir-linux/bin/windres": java.IOException: error=2, No such file or directory

I did quite a bit of digging around and I found this:

http://alakai.org:8088/browse/LAUNCHPLUGIN-15

But, the task is still open, so I can only assume that there is no fix in place for this issue on a 64-bit Linux OS that uses 64-bit java. Unfortunately, my linux box cannot access an external network, so installing 32-bit java is not much of an option. Does anyone know of any other possible work-arounds?

like image 477
JoughTheFun Avatar asked Nov 15 '11 19:11

JoughTheFun


2 Answers

Just install ia32-libs for your distrib. On my ubuntu machine: sudo apt-get install ia32-libs

like image 93
jreznot Avatar answered Oct 08 '22 12:10

jreznot


On recent x64 Ubuntu distributions (starting 14.04 LTS, tested on 16.04 LTS), do this:

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386
like image 37
rmuller Avatar answered Oct 08 '22 12:10

rmuller