Before installing ANT, make sure you have a Java environment installed. And then proceed for ANT installation. Check from command prompt if java is installed already in your machine. Type 'Java -version' to check if the java is installed or not.
Step 1: First please download the latest version of ANT . Click here to download ant
Note: Make sure you download the appropriate formats. As .zip format is recommended format for Windows Operating systems. It looks like apache-ant-versionxyz-bin.zip.
Step 2: Extract 'apache-ant-versionxyz-bin.zip' and rebane with proper name by removing the version as 'Apache Ant'. And place the extracted folder in C drive, preferably C:\Program Files.
Step 3: Now we need to SET the path in Environment variables as we do for JAVA.
Please find the below steps with screen shots to set the ANT Path:
From the desktop, right click the 'Computer' icon / Right click on my computer and Choose 'Properties' from the context menu. And Click the 'Advanced system settings' link.
Click 'Environment Variables'.
In the section 'System Variables', Add path for ANT. After adding find the 'PATH' environment variable and Click on 'Edit' to add.
In the Edit System Variable (or New System Variable) window, specify the value of the 'PATH' environment variable. Click 'OK'.
Click on OK button and close all remaining windows.
Please go to the command prompt and check if the installation is done successfully.
Thats it.. Happy Installing..