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

前端 未结 27 2093
渐次进展
渐次进展 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 00:58

    Its simple. JDK bin directory or JRE bin directory should be in path variable Example : Java Installed directory: Assume your java installed in 'C:\Program Files\java\Jdk1.8.0_144' directory Now you can find bin directory in 'C:\Program Files\java\Jdk1.8.0_144\bin'

    Navigate to user's environment variable

    Control Panel --> User Accounts --> User Accounts --> Change my environment variables
    

    In popup click Path under User variables for section Click Edit... button and another popup will appear

    Click New button and enter C:\Program Files\java\Jdk1.8.0_144\bin

    Click OK button and again OK button in Environment variables popup.

    Now you can open your eclipse without error

    0 讨论(0)
  • 2020-12-01 00:59

    I had this issue; I fixed it by going to

    Computer-->Properties-->Advanced Settings-->Environmental Variables

    In the System Variables find the variable named PATH.
    -->Select Edit -->At the very end of the Path Variable, put a ";" then add your path of your JDK and put \bin\ at the end

    Should be fixed.

    Example:

    System Variable-

    C:\Program Files (x86)\Common Files.......HP\LeanFT\bin

    JDK path-

    C:\Programs Files\Java\jre1.8.0_121

    Final Path -

    C:\Program Files (x86)\Common Files.......HP\LeanFT\bin;C:\Programs Files\Java\jre1.8.0_121\bin\

    Sources: https://www.java.com/en/download/help/path.xml

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

    I also had same problem when developing android applications using eclipse IDE. I solved it by removing all the java installations (I had java 6 and 7 both) and re-install only jdk 7.

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

    This sometimes happen if you remove Java from your path variables. To set the PATH variable again, add the full path of the jdk\bin directory to the PATH variable. Typically, the full path is:

    C:\Program Files\Java\jdk-11\bin

    To set the PATH variable on Microsoft Windows:

    1. Select Control Panel and then System.
    2. Click Advanced and then Environment Variables.
    3. Add the location of the bin folder of the JDK installation to the PATH variable in system variables.
    0 讨论(0)
  • 2020-12-01 01:03

    Did you install Java via the java.com web browser auto install? If so, then that's your problem! You need to to the "manual" install: http://www.java.com/en/download/manual.jsp

    It's just a matter of having the correct match of 32-bit Eclipse/32-bit Java or 64-bit Eclipse/64-bit Java. Many 64-bit Windows have 32-bit browsers and the latter is the version of Java that the auto-installer will provide - not what the 64-bit Eclipse wants.

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

    Just to add on top of other answers:

    Windows Users: You can give the PATH to JRE in eclipse.ini separated by '/' or '\'. It doesn't matter. Eclipse will pick it anyway. For example, in my windows system, either of the paths is fine (after -vm of course):

    C:/Program Files/Java/jre1.8.0_181/bin or C:\Program Files\Java\jre1.8.0_181\bin

    0 讨论(0)
提交回复
热议问题