Setting the correct PATH for Eclipse

后端 未结 7 2240
我寻月下人不归
我寻月下人不归 2020-11-29 03:06

I recently changed my path so I could follow along in the Head First Java book and I had Eclipse before. Now when I try to get onto Eclipse again it won\'t open because it s

相关标签:
7条回答
  • 2020-11-29 04:01

    Like Abob said:

    Eclipse doesn't consult the JAVA_HOME variable

    You should specify where Eclipse should find your JDK in the file eclipse.ini. Specifically, the following parameter (note that it is 2 separate lines in the ini file):

    -vm
    C:\Java\JDK\1.8\bin\javaw.exe
    

    or wherever your javaw.exe happens to be.

    Note: The format of the ini file is very particular; make sure to consult https://wiki.eclipse.org/Eclipse.ini to ensure you get it exactly right.

    0 讨论(0)
提交回复
热议问题