配置Launch4J只使用32位JVM [英] Configure Launch4J to use 32-bit JVM only

查看:458
本文介绍了配置Launch4J只使用32位JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Launch4J开始我的Java应用程序,如果一个64位JRE是present系统上,Launch4J似乎preFER吧。

I'm using Launch4J to start my Java application and if an x64 JRE is present on the system, Launch4J seems to prefer it.

不幸的是我的应用程序无法在64位JVM上运行,因为我加载一个32位的DLL,这是不可能的,导致了的UnsatisfiedLinkError。

Unfortunately my application cannot run on a 64 bit JVM because I'm loading a 32 bit DLL, which is not possible and leads to an UnsatisfiedLinkError.

有没有办法强迫/招Launch4J只使用一个32位JVM?

Is there any way to force/trick Launch4J to use a 32 bit JVM only?

推荐答案

我有大约一年前,这个确切的问题,使用Lauch4J包装,需要一个32位的DLL(SWT-win32.dll一个小型的Java程序,如它的发生)。

I had this exact problem about a year ago, using Lauch4J to wrap a small Java program that required a 32-bit DLL (swt-win32.dll, as it happened).

我发现,如果有安装了32位和64位JVM,Launch4J将总是青睐有64位之一。这将如果64位JVM卸载,这显然不是一个可行的解决方案才有效。

I found that if there were 32-bit and 64-bit JVMs installed, Launch4J would always favour the 64-bit one. It would only work if the 64-bit JVM was uninstalled, which was obviously not a practical solution.

我发现没有办法让Launch4J至preFER的(并且要求)的32位JVM,搜索颇有几分张贴在其论坛上的问题之后。

I found no way of getting Launch4J to prefer (and require) the 32-bit JVM, after searching quite a bit and posting questions on its forum.

所以,我评估了其他的JRE转换器(我用这个列表中的好一些:<一href="http://www.excelsior-usa.com/articles/java-to-exe.html">http://www.excelsior-usa.com/articles/java-to-exe.html).

Therefore, I evaluated a good number of alternative JRE converters (I used this list: http://www.excelsior-usa.com/articles/java-to-exe.html).

我最终定居在Jar2Exe,这是唯一一个有我需要的功能。这不是免费的,但有一个评估版本,而且我认为这是不贵的。

I ended up settling on Jar2Exe, which was the only one that had the features I needed. It's not free, though there is an evaluation version, and I think it wasn't expensive.

希望这有助于!

这篇关于配置Launch4J只使用32位JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆