Eclipse - no Java (JRE) / (JDK) … no virtual machine

前端 未结 30 2006
青春惊慌失措
青春惊慌失措 2020-11-22 05:58

I am trying to get Eclipse v3.5 (Galileo) to re-run on my computer - I have run it before with no problems, but now I keep getting this error:

30条回答
  •  孤城傲影
    2020-11-22 06:23

    All the other answers about setting only the JAVA_HOME are not entirely right. Eclipse does namely not consult the JAVA_HOME. Look closer at the error message:

    ...in your current PATH

    It literally said PATH, not JAVA_HOME.

    Rightclick My Computer and choose Properties (or press Winkey+Pause), go to the tab Advanced, click the button Environment Variables, in the System Variables list at the bottom select Path (no, not Classpath), click Edit and add ;c:\path\to\jdk\bin to the end of the value.

    Alternatively and if not present, you can also add JAVA_HOME environment variable and make use of it in the PATH. In the same dialogue click New and add JAVA_HOME with the value of c:\path\to\jdk. Then you can add ;%JAVA_HOME%\bin to end of the value of the Path setting.

提交回复
热议问题