I read all the possible solutions but the none worked.
I downloaded the ant and put it in C:ant
(so I have C:antin
)
On Windows 7 under System variables I have variable called ANT_HOME with value
C:ant
and variable called PATH with value
%ANT_HOME%in
And when I try in cmd (Command Prompt)
ant -version
I get
ANT_HOME is set incorrectly or ant
could not be located. Please set
ANT_HOME.
Also, if I try
echo %ANT_HOME%
I get
C:ant
I tried PATH = %PATH%;%ANT_HOME%in but the same situation. Anyone?
EDIT:
Variables are (name - value):
ANT_HOME - C:ant
CLASSPATH - .;C:Program FilesJavajre6libextQTJava.zip
ComSpec - %SystemRoot%system32cmd.exe
FP_NO_HOST_CHECK - NO
JAVA_HOME - C:Program FilesJavajdk1.6.0_23
NUMBER_OF_PROCESSORS - 2
OS - Windows_NT
PATH - %ANT_HOME%in;%JAVA_HOME%in
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%system32WindowsPowerShellv1.0Modules
QTJAVA - C:Program FilesJavajre6libextQTJava.zip
TEMP - %SystemRoot%TEMP
TMP - %SystemRoot%TEMP
USERNAME - SYSTEM
windir - %SystemRoot%
XNAGSShared - C:Program FilesCommon FilesMicrosoft SharedXNA
XNAGSv4 - C:Program FilesMicrosoft XNAXNA Game Studiov4.0
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…