source: Instalasi ANT di Windows XP (Indonesia Version)
1.First,You must have JDK installed first.
2.Get the ANT for windows here:
http://ant.apache.org/bindownload.cgi
choose latest version with zip package
3.After download ANT,extract zip package in (for example) C:\Ant
4.Set ANT_HOME
- Right click My Computer icon
- Choose properties
- Choose Advanced Tab
- Choose Environtmen Variables Button
- In the System Variables, click New Button
- Give the Variable Name:ANT_HOME
Give the Value: C:\Ant - Click OK
Then,we’ll add new ANT_HOME path,
Find PATH in the Variable Column in System variables frame
- After found, click Edit button
- Then, add the following text in the bottom of Variable value:
%ANT_HOME%\bin;
- Click OK to finish
5.Check wheter ANT works correctly or not.
In the command prompt, type:
ant -version
then click enter,
if the result text is something like:
Apache Ant version 1.7.1 compiled on June 27 2008
then your ANT is work correctly on your Windows
6.The end.
28 Comments
November 13, 2008 at 2:32 am
[...] About How to Install ANT in Windows XP [...]
January 19, 2009 at 4:53 pm
Thank You for The tutorial….
I already success installing ant at my windows XP
January 19, 2009 at 6:18 pm
@rudi
You’re welcome..
February 11, 2009 at 10:54 am
i ve got
‘ant’ is not recognized as an internal or external command,operable program or batch file.
pls help
February 14, 2009 at 1:47 am
@are5thfee
the problem could be about setting path.
Give the ANT_HOME=C:\Ant and %ANT_HOME%\bin; path on your Environment, then it should work now.
March 19, 2009 at 4:51 pm
thanks……:)
April 13, 2009 at 6:55 am
try WinAnt (http://code.google.com/p/winant/) it’s an installer i made for Ant on Windows
April 13, 2009 at 8:01 am
@mason
yeah…thanks for information.that would be easier using ant for windows user.
May 8, 2009 at 10:32 pm
thank you it was very helpful but does this have a effect on antivirus.it is saying that antivirus is not installed when it was installed before making changes to the environment variables
May 28, 2009 at 9:33 am
very good !God bless
May 29, 2009 at 3:40 pm
Hey
Thanks for the how to but does it work on windows 2003 server ?
I think I did everything as you said but it doesn’t work
June 9, 2009 at 5:13 am
Hi,
Your tutorials helped me a lot to instal ANT on my system.
Thanks,
Prathibha
July 16, 2009 at 8:15 pm
Many thanks.
July 16, 2009 at 10:26 pm
thanks om rud.
July 17, 2009 at 12:59 am
i have follwed the said procedure but it is showing this error ……..
C:\Documents and Settings\Dhiraj>ant -version
‘ant’ is not recognized as an internal or external command,
operable program or batch file.
please help
July 17, 2009 at 1:05 am
i am again getting the error
C:\Ant>ant -version
‘ant’ is not recognized as an internal or external command,
operable program or batch file.
plz help
July 17, 2009 at 7:49 am
@dhiraj
you can go here, http://omrudi.wordpress.com/2008/11/08/how-to-install-ant-in-windows-xp/
July 18, 2009 at 12:17 am
i have again got this
C:\Documents and Settings\Dhiraj>ant -version
‘ant’ is not recognized as an internal or external command,
operable program or batch file.
plzzzz helpp
July 27, 2009 at 10:14 am
For those that are getting errors like
“C:\Ant>ant -version
‘ant’ is not recognized as an internal or external command,
operable program or batch file.”
Try adding the ANT_HOME and PATH variables manually on windows environment variables.
After that, restart windows.
Thanks for the how to ^_^
August 12, 2009 at 11:53 am
For other XP users that are having the same problem as “bon” and “dhiraj’ make sure that you put %ANT_HOME%\bin at the BEGINNING of your PATH variable. This tripped me up for a while and I thought I would pass it along.
September 1, 2009 at 4:53 pm
Thanks
great tutorial for developer.
September 25, 2009 at 5:01 pm
Thank you very much !
October 6, 2009 at 6:41 pm
Thanks so much for this tutorial. I don’t much much about using Java or C on Windows and never had to configure my University server myself so setting all this up was baffling.
Apache are terrible at explaining anything, I want to learn Velocity but it’s kinda hard when I can’t even install the Builder.
Cheers!
October 20, 2009 at 5:11 pm
Thanks dude.. the most easily documented site for Ant installation
October 30, 2009 at 12:29 pm
hiiii all
when I try to install ant I am getting the following message. Please help me to install ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
October 31, 2009 at 9:12 pm
@aziz:
I’ve had the same problem; from the net, I picked up an answer: to check my JAVA_HOME variable.
In my case it was set correct, so I just looked for tools.jar and copied it where the install was looking for it. It worked!!
November 24, 2009 at 4:54 pm
I am able to install ant.
November 24, 2009 at 5:00 pm
@Gidhar
Okey…we hope u enjoy