0
我已經安裝了ANT-1.9.2和jdk1.7.0在Windows 7中,並試圖通過以下方式設置路徑路徑變量沒有被正確設置
C:\>set ANT_HOME=C:\Users\sahaya_s\Downloads\apache-ant-1.9.2;
C:\>set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45;
C:\>set path=%ANT_HOME%\bin;%JAVA_HOME%\bin;
C:\>echo %path%
C:\Users\anto\Downloads\apache-ant-1.9.2;\bin;C:\Program Files\Java\jdk1.7.0_45;\bin;
這裏的路徑已經一分爲二。出了什麼問題?
,並通過提供完整路徑與ANT_HOME
C:\>set path=C:\Users\sahaya_s\Downloads\apache-ant-1.9.2\bin;C:\Program Files\Java\jdk1.7.0_45\bin;
C:\>echo %path%
C:\Users\sahaya_s\Downloads\apache-ant-1.9.2\bin;C:\Program Files\Java\jdk1.7.0_45\bin;
C:\>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)
C:\>ant -version
ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
不過我得到的問題嘗試。任何人都可以幫助我嗎?