this is the simple ways, i think
1. download ant from ant site.
2. extract all and locate in D:\ant (sample).
3. add variable for ANT_HOME
my computer =>right click => properties => advance => environment variable => add variable “ANT_HOME” set value “D:\ant”.
4. add variable for JAVA_HOME
my computer =>right click => properties => advance => environment variable => add variable “JAVA_HOME” set value “C:\Program Files\Java\jdk1.6.0_06″ <= location for javac.exe.
5. add variable for PATH.
my computer =>right click => properties => advance => environment variable => add variable “PATH” set value “C:\Program Files\Java\jdk1.6.0_06\bin; D:\ant\bin” .
cek your installation with typing “ant” in comment prompt.
Buildfile: build.xml does not exist! Build failed
is ant was running, try to type “ant -version”
Apache Ant version 1.7.1 compiled on June 27 2008
Installing was successfull…..