No java virtual machine was found in Eclipse

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:eclipsejrejavaw.exe javaw.exe in your current PATH

How can i rectify this problem?


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

-vm
C:javajdk1.6.0_24binjavaw.exe

This line must be placed before -vmargs options.

and for Linux

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

Try following:

  • Look at your filesystem and make sure a java instance is installed in the mentioned path
  • Open Eclipse and check the general preferences from Eclipse. Under 'Java' -> 'Installed JREs' must be a specified JDK configured.
  • Next, open the general preferences 'Java' -> 'Build Path' -> 'classpath Variables' and look is there the jdk instance mentioned. If not, open dthe control settings from windows and add the variable 'Java_Home'.
  • 链接地址: http://www.djcxy.com/p/91010.html

    上一篇: Eclipse错误:'无法创建Java虚拟机'

    下一篇: 在Eclipse中找不到Java虚拟机