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

前端 未结 30 1994
青春惊慌失措
青春惊慌失措 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

    Open up Windows' System Properties from the control panel and hunt down the environment variables section:

    • Add a JAVA_HOME entry pointing to the directory where the JDK is installed (e.g. C:\Program Files\Java\jre6)
    • Find the Path entry and add the following onto the end ;%JAVA_HOME%\bin
    • OK the changes
    • Restart eclipse so that it is aware of the new environment

    Most Java tools will now be able to find your Java installation either by using the JAVA_HOME environment variable or by looking for java.exe / javaw.exe in the Path environment variable.

提交回复
热议问题