Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to install eclipse to use with PHP, so I downloaded it from eclipse.org, extracted the zip file, and tried to install eclipse. It was throwing an error like

"JRE or JDK must be available in order to run eclipse. No JVM was found after searching the following locations: D:\documents and settings\user\mydocument\download\eclipse\jre\bin\jawaw.exe in your current path"

I installed JDK on my system and then I tried to install eclipse but it was throwing the same error. How can I get eclipse to install successfully?

share|improve this question

migrated from stackoverflow.com Jul 20 '11 at 3:06

This question came from our site for professional and enthusiast programmers.

3 Answers 3

http://www.java.com/en/download/

Install that. If it errors wipe out java from your system and try it again.

share|improve this answer

You need a JRE (runtime environment) for running Eclipse. While Eclipse contains its own compiler, negating the need for a JDK (development environment), it's still written in Java and hence requires the JRE.

share|improve this answer
  • Make sure the JAVA_HOME environment variable points to the JRE directory of your preference
  • After installing JRE, make sure you have restarted your machine

If both do not work Try running eclipse with a -vm flag (from command prompt)

eclipse -vm D:/../YOUR_JDK_FOLDER/bin/javaw.exe

If the last works, you might consider reating a shortcut of eclipse on the desktop (or wherever), right click -> properties, and in the target text box (where you have the path to eclipse.exe), add -vm D:/../YOUR_JDK_FOLDER/bin/javaw.exe at the end.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.