In order to compile and run sample clients for that come with WSO2 products, it is necessary to install Apache Ant on Windows.
Info | ||
---|---|---|
| ||
Refer to Installation Prerequisites for the list of all applications necessary to install and work with the WSO2 product you plan to install. |
Follow the instructions below to install Apache Ant.
Step 1. Check Java
Make sure you have a JDK installed on your system. Refer to Apache Ant System Requirements for details.
Step 2. Download Apache Ant
1. Open a Web browser and access the following URL:
...
Wiki Markup |
---|
!Apache-Ant-build.png|alt="Apache Ant build"! |
5. The download starts.
Step 3. Extract the Archive
After the download is complete, extract installation files to the user-defined folder. For example, c:\wso2\apache-ant-1.8.2.
Wiki Markup |
---|
!Ant-Home.png|alt="Apache Ant home"! |
Step 4. Set up Environment Variables for Apache Ant
Before you run Ant, there is additional configuration you need to do:
...
Info | ||
---|---|---|
| ||
Environment variables are global system variables accessible by all the processes running under the operating system. |
Setting ANT_HOME
Follow the instructions below to set up ANT_HOME.
...
5. ANT_HOME variable is added to system variables.
Adding bin to PATH
Follow the instructions below to add the "bin" directory to the PATH variable.
...
Wiki Markup |
---|
{Note:title=Windows Note} {color:#000000}The ant.bat script makes use of three environment variables ANT_HOME, CLASSPATH and JAVA_HOME. Ensure that ANT_HOME and JAVA_HOME variables are set, and that they do not have quotes (either ' or ") and they do not end with \ or with /. CLASSPATH should be unset or empty.{color} {Note} |
Setting JAVA_HOME
Refer to Installing on Windows for instructions on setting the JAVA_HOME.
...