Ant Installation


Ant Installation in Linux:


Unzip the ant and rename the folder as ant

move that folder in to /usr/local/

Check the JDK 1.6 installed in your machine by

#> java -version

Set path in the .bash_profile
Open the file /root/.bash_profile and add the following codes:
# vim /root.bash_profile
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/opt/java/jdk1.6
export PATH=${PATH}:${ANT_HOME}/bin

#> ant -version
it will show the current installed version.

Ant Installation in Windows:


Unzip the ant and rename the folder as ant

move that folder in to c:\

Check the JDK 1.6 installed in your machine by

#> java -version

Right click My Computer icon

* Choose properties

* Choose Advanced Tab

* Choose Environment Variables Button

* In the System Variables, click New Button

* Give the Variable Name:ANT_HOME Give the Value: C:\Ant

* Click OK

* Then Edit the PATH variable, at the end of the line add this: %ANT_HOME%\bin;

* Click OK to finish

In the command prompt type

ant -version

you will get the result like this

Apache Ant version X.x.X compiled at XXXX.