Installing ANT on Windows


1. Download ANT

2. Unzip the zip file and put it in your comfortable folder (say D:/ant/)

3. Set ANT_HOME environment variable to the Ant location

(MyComputer Rt.Click >>  Properties >> Advanced >> Environment Variables >> User Variables for Administrator >> Set New Variable Name as "ANT_HOME" and set New Variable Value as D:/ant)

4. Now set Path variable to point to your ANT bin directory

(User Variables for Administrator >> Click on Path variable >> Append the ANT bin directory location , say %ANT_HOME%\\bin)

5. Open a command prompt and type "ant" , you should see it working now . In case of any failure try the below command and see the value for ANT_HOME

c:\\echo %ANT_HOME%          // This should print your current ANT directory


Comments:

An easier way to install Ant on Windows is to use WinAnt - the Windows installer for Ant that I made. It sets the necessary environment variables for you, and can install the ant-contrib tasks too! -Mason

Posted by Mason Simon on August 03, 2007 at 01:24 AM PDT #

this guide was quite helpful
when i typed d:/ant in the command prompt it said ant is set incorrectly or ant could not be located
but when i typed
c:\\echo %ANT_HOME% it showed the current ant working directory as d:/ant which is right so does it mean ant is now installed correctly or does it require any more settings

Posted by priya on February 15, 2009 at 11:38 PM PST #

this guide was quite helpful
when i typed d:/ant in the command prompt it said ant is set incorrectly or ant could not be located
but when i typed
c:\\echo %ANT_HOME% it showed the current ant working directory as d:/ant which is right so does it mean ant is now installed correctly or does it require any more settings

Posted by priya on February 15, 2009 at 11:39 PM PST #

Post a Comment:
Comments are closed for this entry.
About

I'm a Quality Engineer at Sun Microsystems. Here in this blog, you may find information about Software Testing, Portal Server, Virtualization, Web2.0 and Misc Technical topics. The views expressed here are personal and does not reflect that of my employer

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today