Tuesday, 8 November 2016

How to install ant tool in window OS

Before you install the Force.com Migration Tool you will need Java and Ant installed on your local machine. Then you can download the Force.com Migration Tool from a Salesforce organization. 1. Install Java and Ant, as described in Prerequisites for Using the Force.com Migration Tool.

Step 1 - Install java. For install java go to java download and download latest version of java.and install it. To verify the installation of java open cmd(command prompt) and run java -version command it will return the version of java if java successful install.

Step 2 - Install ant. Please download ant file here
apache-ant-1.9.7 Unzip file and paste in C drive
Ant Tool Unzip file and paste where you want to use ant

Set Path using Command
C:\>set ANT_HOME=C:\apache-ant-1.9.7

C:\>set JAVA_HOME=java path(Example - C:\Program Files\Java\jdk1.7.0_79)

C:\>set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin

C:\>ant -version

Apache Ant(TM) version 1.9.7 compiled on April 9 2016
Enjoy with ant.