如何修复 EXE4J_JAVA_HOME,在您的系统错误中找不到 JVM?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31838331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to fix EXE4J_JAVA_HOME, No JVM could be found on your system error?
提问by Search Results Web results Pi
I installed java 64bit 1.7 and exe4j 64bit version. I tried to generate an exe from exe4j, but while running the program I'm having this error.
This is how I set up path variable. And this is right jre path. What did I miss here? please let me know.
我安装了 java 64bit 1.7 和 exe4j 64bit 版本。我试图从 exe4j 生成一个 exe,但是在运行程序时我遇到了这个错误。
这就是我设置路径变量的方式。这是正确的 jre 路径。我在这里错过了什么?请让我知道。
Thank you.
谢谢你。
采纳答案by Chathurika Senani
This has to be done during your exe4j configuration. In the fourth step of Exe4j wizard which is Executable Infoselect> Advanced optionsselect 32-bit or 64-bit. This worked well for me. or else install both JDK tool-kits x64 and x32 in your machine.
这必须在您的 exe4j 配置期间完成。在 Exe4j 向导的第四步是Executable Infoselect> Advanced options选择32-bit or 64-bit。这对我来说效果很好。或者在你的机器上安装 JDK 工具包 x64 和 x32。
回答by Jegg
Leave you stuff there and Try the following as well:
将您的东西留在那里,并尝试以下操作:
Start > Right-click on My computer > Properties > Advanced system settings > Environment Variables > look for variable name called "Path" in the lower box
开始 > 右键单击我的电脑 > 属性 > 高级系统设置 > 环境变量 > 在下方框中查找名为“Path”的变量名
set path value value as: (you can just add it to the starting of line, don't forgot semi column in between )
将路径值设置为:(您可以将其添加到行首,不要忘记中间的半列)
c:\Program Files\java\jre7\bin
回答by bhlowe
Try installing the 32 bit version of Java 6. This works for version Install4J 4.0.5. Should fire right up, or allow you to re-run the installer.
尝试安装 32 位版本的 Java 6。这适用于版本 Install4J 4.0.5。应该立即启动,或者允许您重新运行安装程序。
Any newer version or the 64-bit version of 6 will fail, complaining that the java.exe is damaged.
任何较新的版本或 64 位版本的 6 都会失败,抱怨 java.exe 已损坏。
回答by Yannis Qiu
It worked for me, but the exe4j can leave a signature when you double click the .exe application
它对我有用,但是当您双击 .exe 应用程序时,exe4j 可以留下签名
回答by Tom Thompson
BH's answer of installing Java 6u45 was very close... still got the popup on reboot...BUT after uninstalling Java 6u45, rebooted, no warning! Thank you BH! Then installed the latest version, 8u151-i586, rebooted no warning.
BH 对安装 Java 6u45 的回答非常接近......在重新启动时仍然有弹出窗口......但是在卸载 Java 6u45 后,重新启动,没有警告!谢谢BH!然后安装了最新版本,8u151-i586,重启没有警告。
I added lines in PATH as above, didn't do anything.
我在 PATH 中添加了上面的行,没有做任何事情。
My system: Windows 7, 64 bit. Warning was for No JVM, 32 bit Java not found. Yes, I could have installed the 64 bit version, but 32bit is more compatible with all programs.
我的系统:Windows 7,64 位。警告是针对没有 JVM,找不到 32 位 Java。是的,我可以安装 64 位版本,但 32 位版本与所有程序更兼容。
回答by inthiyaz
There are few steps to overcome this problem:
有几个步骤可以解决这个问题:
- Uninstall Java related softwares
- Uninstall NodeJS if installed
- Download java 8 update161
- Install it
- 卸载Java相关软件
- 如果已安装,请卸载 NodeJS
- 下载 java 8 update161
- 安装它
The problem solved:The problem raised to me at the uninstallation on openfire server.
问题解决:在 openfire 服务器上卸载时向我提出的问题。