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…


  1. Loganathan

    i got worked, tx bro.

  2. gid

    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

  3. GIancarlo Diana

    It doesn’t work for me.

    Anyway I solved …
    The correct link is
    and in eclipse.ini I needed to do as follow:
    C:\Program Files\Java\jre7\bin\

    I also wrote a post for italian users on my blog:

    Thanks anyway for your suggestions

  4. Anastasya

    Thanks for sharing!
    Very helpful information.

  5. Don Rodrigue

    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

  6. P Moreels

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

  7. mdlhx

    Oh my god well spotted!! Thanks!!!

  8. davidjmcclelland

    uninstalled the 32-bit Java from Program Files (x86) and the bat file found the correct Java and launched Android AVD – thanks!

  9. Dendi Hidayat

    After download jre7, what should I do?

  10. Talib

    Thanks Jan,
    It worked!!

  11. Sanjiv

    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;

  12. Sebastian

    It worked! Thank you very much! Have the best time ever.

  13. Indian

    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!

  14. ken

    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

  15. Rohit

    Thanks .. Nice work.

Leave a comment

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