I start Eclipse from a hard drive that contains the Windows installation, but the current boot is from another Windows 7 HDD. Normally it would start fine when I booted from that HDD, but now it says:

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: F:\eclipse\jre\javaw.exe javaw.exe in your current PATH.

How can I fix that?

I tried to make a new environment variable called JAVA_HOME pointing to the JRE and then adding ;%JAVA_HOME%\bin to the Path variable but had no luck.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.