为Eclipse设置正确的PATH [英] Setting the correct PATH for Eclipse
问题描述
Eclipse不参考
JAVA_HOME
变量
您应该指定Eclipse在文件 eclipse.ini中找到JDK的位置
。具体来说,以下参数(请注意,ini文件中有两行):
-vm
C :\Java\JDK\1.8\bin\javaw.exe
或无论你在哪里javaw.exe恰好是。
注意: ini
文件非常特别;请确保参考 https://wiki.eclipse.org/Eclipse.ini 以确保您得到它完全正确。
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 says it can't find a JRE or JDK to use in my directory. I have moved the JDK file around. I have jdk1.8.0_60 downloaded. So how can I get Eclipse to open again?
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.
这篇关于为Eclipse设置正确的PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!