eclipse不会启动 - 没有找到java虚拟机 [英] eclipse won't start - no java virtual machine was found
问题描述
Java运行时环境(JRE)或Java开发工具包(JDK)必须可用才能运行Eclipse。在搜索以下位置后找不到Java虚拟机:
C:\Program Files\eclipse\jre\bin\javaw.exe
当前PATH中的javaw.exe
我没有改变任何与我/机器,但Windows更新已应用于我的机器昨天,所以也许这与它有关系(但我没有看到任何会影响Java)。我已经查看了关于向PATH中添加内容的所有其他帖子,或者在Eclipse ini中添加了-vm选项(无法使其正常工作)或将jre文件夹复制到eclipse\jre(这样工作, t似乎是一个很好的长期解决方案)。所以我真的想弄清楚如何让事情回到默认设置,而不会弄乱东西。
我正在运行 Windows 7,Eclipse Helios和Java 1.6.0_26。
两种解决方法。
-
推荐方式:在您的
eclipse.ini
文件确保你是
指向你的jdk安装的-vm。有关此此处的更多信息。 -
从命令行中传递
vm
标志。 http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM
注意:Eclipse不要查阅JAVA_HOME环境变量。
Eclipse was running fine yesterday (and has been since I installed it about a year ago). Now all the sudden I'm getting the following error on startup:
"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:\Program Files\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
I have not changed anyhing Eclipse/Java related on my machine but a Windows update was applied to my machine yesterday, so maybe that has something to do with it (but I don't see anything that would affect Java). I've looked at all the other posts about adding something to your PATH or adding the -vm option to the Eclipse ini (couldn't get this to work) or copying the jre folder to eclipse\jre (this worked but doesn't seem like a good long term solution). So I'm really trying to figure out how to get things back to the "default" setup without messing stuff up.
I'm running Windows 7, Eclipse Helios and Java 1.6.0_26.
Two ways to work around this .
Recommended way : In your
eclipse.ini
file make sure you are pointing -vm to your jdk installation. More on this here .Pass in the
vm
flag from command line. http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM
Note : Eclipse DOES NOT consult the JAVA_HOME environment variable.
这篇关于eclipse不会启动 - 没有找到java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!