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

前端 未结 27 2097
渐次进展
渐次进展 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:03

    I found a solution wherein the Eclipse.ini the location was the old version of Java, and after updating the new version of java the location of -vm

    C:\Program Files\Java\jre1.8.0_201\bin

    was same so I had to change the directory to my new version of Java.

    So solution is to just open the most updated Java version and copying its directory path and replacing it in the Eclipse.ini file.

    0 讨论(0)
  • C:\Program Files\Java\jre1.8.0_221\bin worked for me

    0 讨论(0)
  • 2020-12-01 01:05

    I had this problem too on a win7 machine. I wanted to update the jre with a jdk. So i deleted the jre folder and downloaded and unzipped the new jdk. The issue was i manually deleted the jre folder, when instead i should've uninstalled it. This leaves a bunch of registry entries that still point to the old jre. Somehow eclipse still wants to use the old jre. I couldn't uninstall the old java vm, i kept getting this error:

    Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor

    So i had to use this MS utility to fix the uninstall:

    http://support.microsoft.com/kb/2438651/

    Then i had to install again the vm. I installed to the same location the original one was at, to avoid losing another hour! After that eclipse started correctly.

    Julio

    0 讨论(0)
  • 2020-12-01 01:05

    Moderately future proof example for Linux-like systems. Assuming javac installed and on your path.

    ./eclipse -vm dirname $(readlink -f $(which javac))

    This will find the directory where javac is installed, and pass as vm argument to eclipse.

    0 讨论(0)
  • 2020-12-01 01:06

    Is so simple,only add your java path for example:

    C:\Program Files\Java\jdk1.8.0_121\bin

    in PATH system variable

    0 讨论(0)
  • 2020-12-01 01:06

    I have faced the similar issue earlier with Eclipse and STS IDE'S

    • Please check weather JDK/JRE is available or not in your machine. If not please install JDK and setup the environment variables.
    • Even after step 1, if you are still facing the issue then it's time to set the vm argument in eclipse.ini or sts.ini in the following way.
    -vm 
    C:Program Files (x86)\Java\jre8\bin
    
    0 讨论(0)
提交回复
热议问题