Installing ant in Linux

Ads
 
Tutorials   

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.

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.

[[email protected] local]# mkdir ant
[[email protected] local]# cd ant
[[email protected] ant]# pwd
/usr/local/ant
[[email protected] 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.

[[email protected] 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.

Ads

Ads