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 http://www.java.com/de/download/. 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):
-vm
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 http://www.java.com/de/download/ 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:
- Downloading the 64-Bit Java version form here http://www.java.com/download/manual.jsp
- Adding the following two lines to my eclipse.ini file (just before the “-vmargs” line):
-vm 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…””
i got worked, tx bro.
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
It doesn’t work for me.
Anyway I solved …
The correct link is
http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
and in eclipse.ini I needed to do as follow:
-vm
C:\Program Files\Java\jre7\bin\
I also wrote a post for italian users on my blog:
http://www.unmoscerinonelweb.com/eclipse-64-bit-windows-8-java-64bit/
Thanks anyway for your suggestions
Thanks for sharing!
Very helpful information.
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
Thx, very helpfull!!
I had to use the home download page of oracle to make sure I had the 64b version of the Jre
Oh my god well spotted!! Thanks!!!
uninstalled the 32-bit Java from Program Files (x86) and the bat file found the correct Java and launched Android AVD – thanks!
After download jre7, what should I do?
Thanks Jan,
It worked!!
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;
It worked! Thank you very much! Have the best time ever.
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!
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
Thanks .. Nice work.