In this tutorial, I am going to show you how to set up or install ant on Windows 10 operating system.
Install Ant on Windows 10 :
Download the latest version of Apache ant from here, now it is
Download the above-mentioned latest version and unzip the folder at your preferred location.
The unzipped ant folder like below.
Set Ant_Home :
Before going to set Ant_Home, you should Set JAVA_HOME on your machine. If Java Home hasn’t been set in your computer, go through the below-recommended article to set the Java Home on windows 10 and proceed further.
Recommended: How to set JAVA_HOME on windows 10
Ant_Home at Advanced System Settings > Environment Variables > System Variables > New
Variable name :
Variable value: Extracted ant home path. For me it is
Edit Path Variable :
Select the Path variable under the System Variable session and click on Edit, you can see Edit Environment Variable window like below.
Click on New button and give path like
%ANT_HOME%\binand click on OK.
Test It :
Close your windows command prompt and reopen it check for ant version by passing this command
There you can see the installed version of the Ant.
Happy Learning 🙂