Newer Version Available
Prerequisites for Using the Ant Migration Tool
Before you can use the Ant Migration Tool, Java and Ant must be installed and configured correctly. 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.
Java
Java version 11 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.
1openjdk version "11.0.8" 2020-07-14
2OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
3OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)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 looks something like the following:
1Apache Ant version 1.7.0 compiled on December 13 2006If the Ant version is 1.5.x or earlier, 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.