Friday, May 1, 2020

Quick Step by Step ANT Setup guide


Step#1
Install JDK 1.7 and above version for better security and for the latest TLS security protocols. Download Link

Step#2
Download apache ANT from here

Step#3
Download Force.com ANT Migration Tool from here. Save the .zip file locally, and extract the contents to the directory of your choice.

Step#4
Setup Environment variable ‘ANT_HOME’ and JAVA_HOME’

To setup environment variable go to Control Panel->System and Security->System->Advance System Setting->Environment variable

Set ANT_HOME variable path to parent folder of ‘bin’
i.e. apache-ant-1.10.7-bin\apache-ant-1.10.7

Similarly Set JAVA_HOME variable path to jdk directory.
i.e. C:\Program Files\Java\jdk1.8.0_241


Add Apache bin folder path to PATH variable i.e. apache-ant-1.10.7-bin\apache-ant-1.10.7\bin

Step#5
Test whether ANT is installed properly or not by running ant -version command in command prompt. If you receive error like ‘unable to find tools.jar’, make sure you copy the tool.jar from jdk/lib folder to jre/lib folder.

Congratulations! You have successfully Setup ANT in your system.

For code retrieve/Validate/Deploy, please this article- Salesforce ANT Deployment – Retrieve | Validate | Deploy

No comments:

Post a Comment