本文介绍了安装蚂蚁错误:ANT_HOME设置不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我读了所有可能的解决方案,但没有奏效。
我下载了蚂蚁并把它放在 C:\\蚂蚁
(所以我有 C:\\蚂蚁\\ BIN
)
在Windows 7中的系统变量我呼吁变量 ANT_HOME 与值
C:\\蚂蚁
和变量,名为 PATH 与值
%ANT_HOME%\\ bin中
当我尝试在 CMD (命令提示符)
蚂蚁-version
我得到
Also, if I try
echo %ANT_HOME%
I get
C:\ant
I tried PATH = %PATH%;%ANT_HOME%\bin but the same situation. Anyone?
EDIT:
Variables are (name - value):
ANT_HOME - C:\ant
CLASSPATH - .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
ComSpec - %SystemRoot%\system32\cmd.exe
FP_NO_HOST_CHECK - NO
JAVA_HOME - C:\Program Files\Java\jdk1.6.0_23
NUMBER_OF_PROCESSORS - 2
OS - Windows_NT
PATH - %ANT_HOME%\bin;%JAVA_HOME%\bin
PATHEXT - .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE - x86
PROCESSOR_IDENTIFIER - x86 Family 6 Model 15 Stepping 6, GenuineIntel
PROCESSOR_LEVEL - 6
PROCESSOR_REVISION - 0f06
PSModulePath - %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
QTJAVA - C:\Program Files\Java\jre6\lib\ext\QTJava.zip
TEMP - %SystemRoot%\TEMP
TMP - %SystemRoot%\TEMP
USERNAME - SYSTEM
windir - %SystemRoot%
XNAGSShared - C:\Program Files\Common Files\Microsoft Shared\XNA\
XNAGSv4 - C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\
解决方案
It sounds like you have it setup right. What happens if you try something like this, which worked for me:
C:\>set ANT_HOME=C:\apache-ant-1.8.1
C:\>set JAVA_HOME=C:\jdk1.6.0_24
C:\>set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin
C:\>ant -version
Apache Ant version 1.8.1 compiled on April 30 2010
This also worked for me by setting up environment variables, like so:
这篇关于安装蚂蚁错误:ANT_HOME设置不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!