eclipse won't start - no java virtual machine was found

前端 未结 22 1108
感情败类
感情败类 2020-12-12 16:58

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          


        
相关标签:
22条回答
  • 2020-12-12 17:27

    In my case the problem was that the path was enclosed in quotation marks ("):

    -vm 
    "C:\Program Files\Java\jdk1.8.0_25\bin"
    

    Removing them fixed the problem:

    -vm 
    C:\Program Files\Java\jdk1.8.0_25\bin
    
    0 讨论(0)
  • 2020-12-12 17:28

    In my case i had few things missing. I didnt install JDK and JRE of 64 bit while eclipse was of 64 bit version. Once done and JDK\bin path was set in PATH variable eclipse worked fine :)

    0 讨论(0)
  • 2020-12-12 17:29

    The problem occurred on my machine due to Java version got updated(66 from 60). Pay special attention to it. As said above would like to add

    In this file eclipse.ini, which is available where you have installed eclipse search for the line below -vm example C:\Program Files\Java\jre1.8.0_66\bin

    now try to open this location, in case you are not able to open, that means there is some problem. In my case the version installed was jre1.8.0_60 . So there was a small difference which may not noticeable(66 instead of 60). Update it you will be able to open.

    0 讨论(0)
  • 2020-12-12 17:30

    Via Puppet ATG installation Centos.

    ERROR:

    No Java virtual machine could be found from your PATH

    SOLUTION:

    Declear variable :

    $java_home="/opt/oracle/product/java/jdk1.8.0_45/bin"

    Add This "{$java_home}" Java Exec

    require common, java
    Exec {
        path => [ "${java_home}", "/usr/bin", "/bin", "/usr/sbin", "${temp_directory}"]
    }
    
    0 讨论(0)
  • 2020-12-12 17:32

    Try downloading and installing 32-bit version of Java, and then setting the path :)

    0 讨论(0)
  • 2020-12-12 17:34

    Open eclipse.ini file besides eclipse.exe

    paste

    -vm
    C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll 
     //find it if you are having another JDK version.
    

    on first line. And you are good to go.

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