You don’t need to copy the new jar file to the Ant lib directory. The lib directory is located in the root folder of your Ant installation. If you installed a previous version of the tool and copied ant-salesforce.jar to the Ant lib directory, delete the previous jar file. The Ant Migration Tool uses the ant-salesforce.jar file that’s in the distribution.
zip file locally and extract the contents to the directory of your choice. If you’re logged in to Salesforce, we recommend you log out before accessing the link in your browser.
The download link doesn’t require authentication to Salesforce. zip file of the Winter ’19 Ant Migration Tool. If you don’t have Ant installed, see Prerequisites for Using the Ant Migration Tool.ĭownload the.
Install the Ant Migration Toolįollow these steps to download and install the Ant Migration Tool. Also, create a JAVA_HOME environment variable and set the value to the location of your JDK.
If you are using a Windows operating system, create an ANT_HOME environment variable and set the value to where you have installed Ant. (Only the bin and lib directories are required to run Ant.)
When the files are on your computer, no further installation is required.Īdd the bin directory to your path.
To install and configure Ant:ĭownload Apache Ant version 1.6 or later to a directory of your choice. To check the version of Java that’s installed on your systemĪt the prompt, type java -version and press Enter. Java version 1.7.x or later is recommended for better security and for the latest TLS security protocols. If you already have Java and Ant on your computer, you don’t need to install them, so first verify the installation from a command prompt. Prerequisites for Using the Ant Migration Toolīefore you can use the Ant Migration Tool, Java and Ant must be installed and configured correctly. ĭownload the Ant Migration Tool, as described in Install the Ant Migration Tool. Install Java and Ant, as described in Prerequisites for Using the Ant Migration Tool. Then you can download the Ant Migration Tool from a Salesforce organization. Or you can pull down changes to your Developer Edition org every day.īefore you install the Ant Migration Tool you will need Java and Ant installed on your local machine.