– Make sure you have set JAVA_HOME env. variable before. For my case, I’m having open-jre and open-jdk install.
I need to append to file /etc/profile one more line
Save and we’re done with JAVA_HOME variable.
install ant from repo with:
sudo apt-get install ant
Let’s test, type into terminal ant -version
>> Apache Ant(TM) version 1.8.2 compiled on May 18 2012