Installing
-
Download Latest Apache Ant Binaries
-
Then Double-Click on Ant Archive to Extract
-
Next Relocate Apache Ant:
sudo su
mv /Users/dave/Downloads/apache-ant* /opt/
exit
-
Again Set Up the User PATH:
nano $HOME/.profile
Append:
export PATH=$PATH:/opt/apache-ant-[X.Y.Z]/bin
export ANT_HOME=/opt/apache-ant-[X.Y.Z]
export JAVA_HOME=[/path/2/jdk7]The JAVA_HOME Should Point to the Oracle Java JDK Installation.
How-to Install Recommended Oracle JDK 7+ on Mac OS X:
Then Load the New SetUp:
source $HOME/.profile
-
Finally Test Ant Installation:
ant -version