在Eclipse中没有找到java虚拟机 [英] No java virtual machine was found in Eclipse
问题描述
我试图让Eclipse Indigo重新启动我的电脑 - 我以前运行它没有问题,但现在我得到这样的错误;
I am trying to get Eclipse Indigo to re-Start on my computer - i have run it before with no problems but now i getting error like this;
Java运行时环境(JRE)或Java开发工具包(JDK)必须可用于运行Eclipse。搜索以下位置后找不到Java虚拟机:C:\eclipse\jre\javaw.exe当前路径中的javaw.exe
A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\eclipse\jre\javaw.exe javaw.exe in your current PATH
我如何纠正这个问题?
推荐答案
您可以在Eclipse根文件夹中的eclipse.ini文件中指定JVM,如下所示:
You can specify JVM in eclipse.ini file at the Eclipse root folder, like this:
-vm
C:\java\jdk1.6.0_24\bin\javaw.exe
此行必须放在-vmargs选项之前。
This line must be placed before -vmargs options.
对于Linux
-vm
/..java address../bin/java
这篇关于在Eclipse中没有找到java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!