eclipse不会启动 - 没有找到java虚拟机 [英] eclipse won't start - no java virtual machine was found

查看:663
本文介绍了eclipse不会启动 - 没有找到java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse在昨天运行良好(从一年前就已经安装了)。现在突然之间,我在启动时收到以下错误:

 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不要查阅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 .

Note : Eclipse DOES NOT consult the JAVA_HOME environment variable.

这篇关于eclipse不会启动 - 没有找到java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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