How to install Apache Ant on Windows

0

To install Apache Ant on Windows, you just need to download the Ant’s zip file, and Unzip…

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

To install Apache Ant on Windows, you just need to download the Ant’s zip file, and Unzip it, and configure the ANT_HOME Windows environment variables.

Prerequisites: JDK should be installed in your system.

1. CONFIGURE JAVA_HOME AS WINDOWS ENVIRONMENT VARIABLE

2. DOWNLOAD APACHE ANT:

Go to Apache Ant official website, download the Ant binary zip file, for example : apache-ant-1.9.5-bin.zip, unzip it to the folder you want to store Apache Ant.

3. UNZIP IT TO THE FOLDER YOU WANT TO STORE APACHE ANT:

For example: C:apache-ant-1.9.5

4. ADD ANT_HOME:

Add ANT_HOME as the Windows environment variable, and point it to your Ant folder.

5. UPDATE PATH:

Update Path variable, append %ANT_HOME%bin at the end, so that you can run the Ant’s command everywhere.

6. VERIFICATION:
Go to Command Prompt, type ant -version and hit Enter key.

C:UsersDell5>ant -version
Apache Ant(TM) version 1.9.5 compiled on June 20 2015
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed

If you see a similar message above, means the Apache Ant is installed successfully on Windows.

Reference: Installing Apache Ant

Leave a Reply

Your email address will not be published. Required fields are marked *