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

前端 未结 30 1517
青春惊慌失措
青春惊慌失措 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:09

    I have windows 7 64-bit, and I had this same problem with eclipse. To get it to work, I had to use internet explorer (64-bit version) to download java. This was the only way to get java to install a 64-bit version. When I used firefox to install java, it automatically installed a 32-bit version (so idiotic!). And The Eclipse 64-bit version wouldn't detect the java 32-bit version.

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

    First of all thanks to YouYou for his solution! I tried answer by YouYou (https://stackoverflow.com/a/14464653/801919). Initially, it did not work for me. Following are the steps that I needed to take to make it work:

    1. Initially, I did not have Java installed on my new machine. So, I had to install that (downloaded from: http://java.com/en/download/manual.jsp).
    2. I am running 64-bit OS. But, while downloading, I got the message which could help me in choosing which version of Java to download: Choose the 32-bit download to use with a 32-bit browser. Hence, I downloaded 32-bit version.
    3. Then, I followed the procedure mentioned in https://stackoverflow.com/a/14464653/801919, hoping to get the solution.
    4. I got some other error: Java was started but returned exit code=13
    5. Then, I installed 64-bit version of Java.
    6. Copied javaw.exe from that version.

    ...And Eclipse started working!!! Yaay!

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

    If you download the 64 bit version of Eclipse; it will look for the 64 bit version of JRE. If you download the 32 bit version of Eclipse; it will look for the 32 bit version of JRE

    What I did was to install the both the 32 and 64 bit version of JRE. You can get that from the SUN Oracle site. The JAVA site seems to automatically install the 32 bit version of Java. I guess that's because of the web browser.

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

    Solution in a nutshell:

    Right-click on My Computer, click properties, then advanced system settings, a System properties window will popup, under advanced tab, choose environment variables, Environment variables window will popup, under the System variables section , look for PATH variable, and edit the value, changing it (the version; jre6,jre7, etc) to whatever jre you're using, e.g for mine: C:\Program Files\Java\jre7\bin

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

    if after adding the C:\Program Files\Java\jdk1.8.0_92\bin in PATH variable in environment variables the eclipse gave the same error

    check eclipse configuration settings file that found in eclipse folder, you must see the same jdk path you have in C:\program Files

    I hope it help.

    0 讨论(0)
  • 2020-11-22 06:16
    • 64-bit OS--> You need: 64-bit Java and 64-bit Eclipse
    • 32-bit OS--> You need: 32-bit Java and 32-bit Eclipse

    if you update your java version with default update in your 64 bit computer (and you have 32 bit browser), java will install 32 bit version. You should find 64 bit java version and install it.

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