6

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?

JoughTheFun
  • 91
  • 1
  • 7

3 Answers3

4

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

Dan
  • 10,531
  • 2
  • 36
  • 55
jreznot
  • 2,694
  • 2
  • 35
  • 53
  • 1
    If the OP can't access an external network to pull a 32-bit version of *Java*, it may be hard for them to install ia32-libs like this. – Makoto Jan 06 '12 at 22:30
  • 1
    May be download packages on another machine, and install it manually ? – jreznot Jan 07 '12 at 17:19
1

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
rmuller
  • 12,062
  • 4
  • 64
  • 92
0

For Fedora, install the 32 bit version of openjdk-devel. java-1.6.0-openjdk-devel.i686 or java-1.7.0-openjdk-devel.i686.

yum install java-1.6.0-openjdk-devel.i686

... or ...

yum install java-1.7.0-openjdk-devel.i686

Use yumdownloader on a different machine if you can not reach the network.

Mattias Ohlsson
  • 169
  • 2
  • 4