No java virtual machine was found in Eclipse [duplicate]

China☆狼群 提交于 2020-01-01 03:36:30

问题


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?


回答1:


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



回答2:


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'.


来源:https://stackoverflow.com/questions/7077132/no-java-virtual-machine-was-found-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!