You should see an output similar to − C:\Users\User> ant -versionĪpache Ant(TM) version 1.10.7 compiled on September 1 2019Ĭommon Java IDEs, such as IntelliJ and Eclipse, support the usage of Ant. To verify the successful installation of Apache Ant on your computer, type ant -version on your command prompt. (note you should make it a persistent setting).
If you are not sure how to create or modify an environment variable, You can now run ant commands from anywhere on your system. In our example this would be the C:\User\User\apache-ant-1.10.7-bin\bin folder. Set environment variables (Windows and Linux)Ĭreate a new environment variable called ANT_HOME that points to theĪnt installation folder, in our example, the C:\User\User\apache-ant-1.10.7-bin folder.Īppend the path to the Apache Ant batch file to the PATH environment variable. To unzip on Windows, you can use 7-zip or similar programs. Unzip the zip file to a convenient location (e.g. It is assumed that you have already downloaded and installed Java Development Kit (JDK)įor Mac users who use brew to install packages (highly recommended in general), you can simply install ant using brew install ant and move to Verify Installation.įor Windows and Linux, proceed as follows: Apache Ant is a software, thus it requires installation wherever you want to use it.