Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install ANT from downloaded zip: How to do it ?

share|improve this question
up vote 5 down vote accepted

That is the Windows file you downloaded. You need the .tar.gz and that download has a file named INSTALL with a link to the installation manual:

For installation instructions see the manual in the docs subdirectory or online at

It is a binairy download so all you need to to do un-tar it to a location (I would advice something like /opt/apache-ant-1.9.6/ with a symlink to /opt/apache-ant/ so you can install several verions).

You need JDK (1.7+ adviced) and set a few things:

  • Add the bin directory to your path
  • Set the ANT_HOME environment variable to the directory where you installed Ant.
  • Optionally, set the JAVA_HOME environment variable


  • Assume Ant is installed in /opt/apache-ant/. The following sets up the environment:

    export ANT_HOME=/opt/apache-ant/
    export JAVA_HOME=/opt/apache-ant/jdk1.7.0_51
    export PATH=${PATH}:${ANT_HOME}/bin

The link to the manual also has instructions on checking if all went well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.