Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Ant Installing ant in Linux

Related Tutorials


 
 

Share on Google+Share on Google+

Installing ant in Linux

Advertisement
In this tutorial I will show you how you can install ant tool on your linux box. This installing ant in linux is based on the practical work.

Installing ant in Linux

     

In this tutorial I will show you how you can install ant tool on your linux box. This installing ant in linux is based on the practical work.

Step 1:
Download ant from http://ant.apache.org/bindownload.cgi. I have downloaded apache-ant-1.7.1-bin.zip for this tutorial.

Step 2:

Login to your Linux box and create a directory "ant" under /usr/local.

[root@RoseIndiaLinux local]# mkdir ant
[root@RoseIndiaLinux local]# cd ant
[root@RoseIndiaLinux ant]# pwd
/usr/local/ant
[root@RoseIndiaLinux ant]#

Step 3:

Copy apache-ant-1.7.1-bin.zip onto your Linux box in  /usr/local/ant directory.

Step 4:

Extract the zip file apache-ant-1.7.1-bin.zip) using unzip command.

[root@RoseIndiaLinux ant]# unzip apache-ant-1.7.1-bin.zip

above command will extract the content of the zip file and will create a new directory apache-ant-1.7.1

Step 5:

Set path in the .bash_profile

Open the file /root/.bash_profile and add the following codes:

export ANT_HOME=/usr/local/ant/apache-ant-1.7.1
export JAVA_HOME=/opt/java/jdk1.6.0_06
export PATH=${PATH}:${ANT_HOME}/bin

Step 6:

Logout and login again to your Linux box. Now ant available on your box.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: August 1, 2008

Related Tutorials

Discuss: Installing ant in Linux   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:5
Cullen
February 8, 2012
great

THANK YOU
Manoj Pradhan
June 20, 2012
Thanks

Good article. It has what exactly required ! Thanks.
Nishant Bhatt
December 12, 2012
THANKS

Thank you
BIJOY KUMAR KHANDELWAL
January 1, 2013
ANT INSTALLATION

I have made all the necessary changes in the bash_profile. but still not able to use ant. Can anyone plz list out the correct changes to be made in the bash_profile.
sri
November 12, 2013
ANT Setup in Linux

It's helped lot and saved my time too....
DMCA.com