Newer Version Available
Prerequisites for Using the Force.com Migration Tool
Before you can use the Force.com Migration Tool, Java and Ant must be installed and configured correctly. You don’t need to install Java and Ant if you already have them on your computer, so first verify the installation from a command prompt.
Java
Java version 1.7.x or later is recommended for better security and for the latest TLS security protocols.
To check the version of Java that’s installed on your system:
- Open a command prompt.
- At the prompt, type java -version and press Enter.
To install Java, go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and get the latest version of the Java JDK. When you’re finished with the installation, verify by typing java -version at a command prompt.
Ant
- Open a command prompt.
- At the prompt, type ant -version and press Enter.
The output should look something like the following:
If the Ant version is 1.5.x or earlier, you will need to download the latest version of Ant.
To install and configure Ant:
- Download Apache Ant version 1.6 or later to a directory of your choice: http://ant.apache.org/bindownload.cgi. This directory known as ANT_HOME. When the files are on your computer, no further installation is required.
- Add the bin directory to your path. (Only the bin and lib directories are required to run Ant.)
- If you are using a Windows operation system, create an ANT_HOME environment variable and set the value to where you have installed Ant. Also create a JAVA_HOME environment variable and set the value to the location of your JDK.
For more information, see http://ant.apache.org/manual/install.html.