Step-by-step – Apache Ant Mac Catalina Installation Guide

Installing

  1. Download Latest Apache Ant Binaries

    Latest Apache Ant tar.gz
  2. Then Double-Click on Ant Archive to Extract

  3. Next Relocate Apache Ant:

    sudo su
    mv /Users/dave/Downloads/apache-ant* /opt/
    exit
  4. 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:

    Install Oracle JDK for Mac

    Then Load the New SetUp:

    source $HOME/.profile
  5. Finally Test Ant Installation:

    ant -version