简体   繁体   中英

How to forcefully run a Jar file using 32-bit JVM when both 32-bit and 64-bit JVM are installed?

安装了 32 位和 64 位 JVM 时,如何使用 32 位 JVM 强制运行 Jar 文件?

尝试使用launchj4,您可以将 jar 包装到一个 exe 文件中并指定您要使用的 JRE 并强制它搜索 32 位 JVM,设置最小和最大版本等...包装器将自动搜索已安装的 JRE 并选择一个符合要求。

Find the java.exe in "C:\\Program Files (x86)" and write a cmd-file with one line:

"C:\Program Files (x86)\javasomething\java.exe" -jar "Your 32-Bit-File.jar"

Save it as doitso.cmd and doubleclick it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM