Eclipse - no Java (JRE) / (JDK) … no virtual machine

前端 未结 30 1520
青春惊慌失措
青春惊慌失措 2020-11-22 05:58

I am trying to get Eclipse v3.5 (Galileo) to re-run on my computer - I have run it before with no problems, but now I keep getting this error:

相关标签:
30条回答
  • 2020-11-22 06:31

    It turned out that all I needed to do was change the 'path' to:

    "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; C:\Program Files (x86)\Java; C:\Program Files (x86)\Java\jdk1.6.0_14\bin"

    that did it :)

    0 讨论(0)
  • 2020-11-22 06:32

    I had the same problem. The easy way, for me to fix it was to install both the JRE and the eclipse as x86 or x64. When their bit type did not match, eclipse could not find it. So, if it is not a big deal for you to uninstall and reinstall in order to make them match, I would do that.

    I ended up installing: Java Runtime Environment 1.7.0.3 (64-bit) and Eclipse Indigo (3.7) (64-bit)

    Then it just works.

    0 讨论(0)
  • 2020-11-22 06:33

    Do not rely on the windows path variable because it gets changed in nearly every update. E.g. a chrome (32bit on a 64 bit machine) java update replaces the systemwide 64 bit JVM by a 32 bit JVM. Note also that this entry has to be the last one in the eclipse.ini, otherwise it does not work,And - as otherwise stated - the JAVA_HOME variable is NOT evaluated by eclipse.exe.

    even if your has JAVA_HOME and Path configured valid,their may has this problem,so the most simple way to do is open your eclipse.ini in your eclipse installtion folder

    -vm

    C:\Program Files\Java\jdk1.7.0_71\bin\javaw.exe

    replace C:\Program Files\Java\jdk1.7.0_71\bin\javaw.exe with your jdk or jre `s path

    0 讨论(0)
  • 2020-11-22 06:34

    The reason you get this error is because eclipse needs a JRE to launch, which it can't find. The first place it searches is the current directory, then the eclipse.ini file and then finally the system path. So if the it can't find the correct jvm(bit versions are different) through any of these three places, it cribs

    The recommended way is to edit the eclipse.ini file and tell eclipse where exactly to look for the vm/jre, by including this line in the file:

    -vm
    [path to your java.exe] (which is generally under "C:\Program Files\Java\jre7\bin")

    P.S. To edit the eclipse.ini, you may need to move the it, edit and then paste it back

    Source:- wiki

    0 讨论(0)
  • 2020-11-22 06:34

    Check Window > Preferences > Java > Installed JREs. Make sure there's something there; if there isn't, add one.

    Did you recently update your JDK?

    0 讨论(0)
  • 2020-11-22 06:34

    When I copied only javaw, the second error occured, there is not a java.dll file, when I copied it too, eclipse did not start, what I did was that I copied whole jdk folder to eclipse folder and renamed id to jre. Problem solved.

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