Monday, March 11, 2013

Java Runtime Environment Must Be Available To Run Eclipse

When using the Android SDK Java Runtime Environment Must Be Available To Run Eclipse

Java Runtime Environment Must Be Available To Run Eclipse
Java Runtime Environment Must Be Available To Run Eclipse Screenhot
When running the eclipse.exe from the adt-bundle-windows-x86_64 package you probably get the error in the image to the right:



Android Eclipse SDK installation: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
NO problem. Ussually this means you are running 32 bit java on a 64 bit system. because your browser is 32 bit so the SUN website automitically checks for 32 bit java only.
Most issues dissapear by simply installing 64 bit java. If not, just follow these steps:

FOR 64 bit systems:
Java Runtime Environment Must Be Available To Run Eclipse
screenshot java 64 bit installed
  1. Check if you have latest 64 bit java installed
    1. Start --> control panel --> programs [see screenshot]
  2. If yes, all you have to do is add the following code to your eclipse.ini file:
  3. -vm
    [location of your javaw.exe] for me this is: D:\TempPrograms\Java\bin\javaw.exe
    If not, go to: http://java.com/en/download/manual.jsp for manual java download and install 64 bit java
  4. Done!

FOR 32 bit systems:

  1. Check if you have latest 32 bit java installed
    1. go to java website: http://java.com/en/download/installed.jsp
  2. If yes, all you have to do is add the following code to your eclipse.ini file:
  3. -vm
    [location of your javaw.exe] for me this is: D:\TempPrograms\Java\bin\javaw.exe

  4. Done!
Now you should no more get the dreaded message: Java Runtime Environment Must Be Available To Run Eclipse

14 comments:

  1. I love you finally worked :)

    ReplyDelete
  2. Excellent, worked like a charm. :D
    Thanks alot !

    ReplyDelete
  3. where do we add

    -vm
    C:\Program Files\Java\jre7\bin\javaw.exe

    in the "eclipse.ini" ?
    can u please give a screenshot if possible? its 64bit

    ReplyDelete
  4. Great Post.. Finally it works for me

    ReplyDelete
  5. worked for me, thanks for sharing

    ReplyDelete
  6. I don't normally comment, but thanks; that was easy to understand and solved my problem perfectly :)

    ReplyDelete
  7. for me does not work

    ReplyDelete
  8. Yours is the only link that's working good... Thanks!!!

    ReplyDelete
  9. Thank you. You saved the day.

    ReplyDelete
  10. I ran into this Exit ticket 13 problem while installing Eclipse, and following your advice(uninstall 32 bit Java and install the 64 bit java) did it! Thank you so much! This is from a novice.

    ReplyDelete