A JRE or JDK must be available in order to run Eclipse. No JVM was found after searching the following locations

前端 未结 27 2118
渐次进展
渐次进展 2020-12-01 00:31

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 Runt

27条回答
  •  伪装坚强ぢ
    2020-12-01 01:12

    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.

提交回复
热议问题