3
$ ant --version
Error: JAVA_HOME is not defined correctly.
We cannot execute 헬愣헬愣0
헬愣헬愣0
Files
/bin/java
我提取螞蟻到一個名爲螞蟻運行ant在Cygwin的回報JAVA_HOME不正確設置
C:\ANT
文件夾我設置了環境變量
ANT_HOME with the path C:\Ant
JAVA_HOME with the path C:\Program Files (x86)\Java\jdk1.6.0_32
I checked my Java path is set correctly
and does return the correct message.
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
如何解決這個問題?
'PATH'肯定的,但'JAVA_HOME'必須是Windows風格的路徑,而不是'/ cygdrive'一個爲Java不是Cygwin的感知。 –