必须使用JRE或JDK才能运行Eclipse。在搜索以下位置后找不到JVM [英] A JRE or JDK must be available in order to run Eclipse. No JVM was found after searching the following locations

查看:552
本文介绍了必须使用JRE或JDK才能运行Eclipse。在搜索以下位置后找不到JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse无法打开,以前使用过eclipse,之前没有问题。现在我收到以下错误消息:


Java运行时环境(JRE)或Java开发工具包(JDK)必须按顺序可用运行Eclipse。在搜索以下位置后,没有找到Java虚拟机:


已经有Eclipse打开并在项目之前工作,不会打开



以下是我继续获得的屏幕截图:



解决方案

=http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example =noreferrer>您可以明确地告诉Eclipse在哪里找到它。打开 eclipse.ini 并将以下行添加到文件的顶部:

  -vm 
/ absolute / path / to / jre6 / bin






更新:我刚刚确定了我自己的Windows机器上的根本原因。 GlassFish安装程序抱怨完全相同的错误消息,并在GlassFish论坛中挖掘之后,原因很清楚:在Windows机器上安装损坏的JRE。我的JRE与JDK和Java 6 JDK安装程序一起没有正确安装JRE。 JDK的JRE安装中缺少一个DLL文件。在从 http://java.com 重新安装独立的JRE之后,重写旧的JRE,GlassFish安装程序还会继续Eclipse在 eclipse.ini 中没有这两行就能够无瑕疵地开始。


Eclipse is unable to open, have used eclipse before and has open before without a problem. Now I keep getting the following error message:

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:

Have gotten eclipse to open and work on projects before and won't open.

Here is a screen shot of what I keep getting:

解决方案

You can explicitly tell Eclipse where to find it. Open eclipse.ini and add the following lines to the top of the file:

-vm
/absolute/path/to/jre6/bin


Update: I just nailed down the root cause on my own Windows machine. The GlassFish installer complained with exactly the same error message and after digging in GlassFish forums, the cause was clear: a corrupt JRE install on a Windows machine. My JRE came along with the JDK and the Java 6 JDK installer didn't install the JRE properly somehow. A DLL file was missing in JDK's JRE installation. After I reinstalled the standalone JRE from http://java.com, overwriting the old one, the GlassFish installer continued and also Eclipse was able to start flawlessly without those two lines in eclipse.ini.

这篇关于必须使用JRE或JDK才能运行Eclipse。在搜索以下位置后找不到JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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