I acted according to Installing Apache Ant . I unpacked the apache-ant-1.8.4.tar.gz archive into the / usr folder. Then entered the following 2 commands

export ANT_HOME=/usr/apache-ant-1.8.4 export export PATH=${PATH}:${ANT_HOME}/bin 

(However, the first time I made a typo in the first command and entered export ANT_HOME=/usr/apche-ant-1.8.4 and entered these two commands again). After entering ant -version received

Unable to locate tools.jar. Expected to find it in /usr/jdk/instances/jdk1.6.0/lib/tools.jarApache Ant(TM) version 1.8.4 compiled on May 22 2012

    1 answer 1

    Problem solved

     export JAVA_HOME=/opt/jdk1.7.0_06