How to install ant on Linux

  • First we need download apache ant from here
  • Then unzip in any place, for example /home/usr/Java/
  • Now we are going to register ANT_HOME, for this we will go to edit profile file, open a terminal and type:

sudo nano /etc/profile, and at the end of file add:

export ANT_HOME
export PATH=${PATH}:${ANT_HOME}/bin


  • Logout and login again on your Linux PC, open a terminal and type: ant -version

The screen should be show a message similar to this: Apache Ant(TM) version 1.8.4 compiled on May 22 2012




0 #2 Rene Enriquez 2014-09-22 02:46

There is no error, the message only say you, that not exist a build.xml file in your current directory, don't worry, the installation is ok
0 #1 Rajawat 2013-09-20 12:23
Actully I am trying
>$ant -v
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed

that is problem
can you solve it...

Add comment

Security code