Launch4j maven 插件无法在 64 位 Linux 机器上运行

发布于 2024-12-15 10:29:44 字数 888 浏览 6 评论 0原文

我正在尝试使用 maven Launch4j 插件版本 1.5.0.1

当我在 Windows 盒子上构建 pom 时,没有问题(我的 Windows 盒子同时安装了 32 位和 64 位版本的 Java)。但是当我在我的 Linux 机器上构建 pom 时,我遇到了这个问题:

堆栈跟踪: org.apache.maven.lifecycle.LifecycleExecutionException:无法执行目标org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.01.1.....无法构建可执行文件;请验证您的配置

原因:net.sf.launch4j.BuilderException:net.sf.launch4j.ExecException:java.io.IOException:无法运行程序“/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,没有这样的文件或目录

我做了很多挖掘,发现了这个:

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

但是,任务仍然是open,所以我只能假设在使用 64 位 java 的 64 位 Linux 操作系统上没有针对此问题的修复。不幸的是,我的 linux 机器无法访问外部网络,因此安装 32 位 java 并不是一个好的选择。有谁知道任何其他可能的解决方法?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ゃ懵逼小萝莉 2024-12-22 10:29:44

只需为您的发行版安装 ia32-libs 即可。在我的 ubuntu 机器上:sudo apt-get install ia32-libs

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

孤单情人 2024-12-22 10:29:44

在最近的 x64 Ubuntu 发行版(从 14.04 LTS 开始,在 16.04 LTS 上测试)上,执行以下操作:

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386

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
唯憾梦倾城 2024-12-22 10:29:44

对于 Fedora,安装 32 位版本的 openjdk-devel。 java-1.6.0-openjdk-devel.i686 或 java-1.7.0-openjdk-devel.i686。

yum install java-1.6.0-openjdk-devel.i686

...或...

yum install java-1.7.0-openjdk-devel.i686

如果无法访问网络,请在另一台计算机上使用 yumdownloader。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文