Eclipse & Windows 64-Bit: Resolve “Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available…” and “Java was started but returned exit code= 13…”

It’s been a while I’ve set up Eclipse the last time and today I tried to run Eclipse (“Eclipse Classic 4.2.1 / 64 Bit” downloaded from here to be precise) on my fresh installed Windows 8. After extracting the zip folder and starting eclipse.exe I got the error message:

Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse…

I haven’t had installed Java yet, so I googled for “Java download”, downloaded and installed Java from I tried starting Eclipse again, but surprisingly I got the same “Java not found” error.

My next step was to edit the eclipse.ini file as described in the Eclipse FAQ and added (just before the “-vmargs” line):

c:\Program Files (x86)\Java\jre7\bin\javaw.exe

After restarting Eclipse with the modified eclispe.ini I got a new error message saying:

Java was started but returned exit code= 13…

Finally I found out, that the Java download page redirected my Chrome browser to a 32-Bit Java download but a 64-Bit version of Java is needed in order to run the 64-Bit version of Eclipse.

So finally I was able to run Eclipse 64-Bit by:

  1. Downloading the 64-Bit Java version form here
  2. Adding the following two lines to my eclipse.ini file (just before the “-vmargs” line):
    c:\Program Files\Java\jre7\bin\javaw.exe

Hope this helps somebody when trying to launch Eclipse 64-Bit. Happy programming…

15 responses to “Eclipse & Windows 64-Bit: Resolve “Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available…” and “Java was started but returned exit code= 13…””

  1. hi, you are amazing! i finally got it to work thanks to your step by step instructions.

    to be frank, i only have myself to blame because I thought x86 = 64 bit and x64 = 32 bit; NO … x64 is for 64 bit. Maybe I should just quit learning programming now … haha …kidding

  2. This worked. Especially manually downloading java. For some reason, downloading the online installer installed the wrong version of Java (32 its rather than 64 bits).
    Thank you very much buddy.

    – Cheers

  3. Thx, very helpfull!!
    I had to use the home download page of oracle to make sure I had the 64b version of the Jre

  4. Just change path on System variable, Remove from c:/ until %SystemRoot

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;

  5. Thank you for your solution. It really helped. I have trying to get mine to work for weeks without any solutions in sight. Couldn’t find a working solution on Eclipse pages either. Your simple step by step solution is awesome. Keep it up!

  6. you are a genius!!!. I almost formatted my Win 8.1 thinking it was a compatibility problem and tend to install a lower version OS, but you have saved me from all that. .Thanks as it really work

Leave a Reply

Your email address will not be published. Required fields are marked *