Java – No java virtual machine was found in Eclipse

eclipsejavapath

Possible Duplicate:
Eclipse – no Java (JRE) / (JDK) … no virtual machine

I am trying to get Eclipse Indigo to re-Start on my computer – i have run it before with no problems but now i getting error like this;

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

How can i rectify this problem?

Best Answer

You can specify JVM in eclipse.ini file at the Eclipse root folder, like this:

-vm
C:\java\jdk1.6.0_24\bin\javaw.exe

This line must be placed before -vmargs options.

and for Linux

-vm
/..java address../bin/java