Web | This Site

Apache Ant - Basics
Ant - Quick Guide
Ant - Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# Ant - Environment Setup

# Installing Apache Ant

It is assumed that you have already downloaded and installed Java Development Kit (JDK) on your computer. If not, please follow the instructions here.

Apache Ant is distributed under the Apache Software License, a fully-fledged open source license certified by the open source initiative.

The latest Apache Ant version, including full-source code, class files and documentation can be found at http://ant.apache.org.

1. Ensure that the JAVA_HOME environment variable is set to the folder where your JDK is installed.

2. Download the binaries from http://ant.apache.org

3. Unzip the zip file to a convenient location using Winzip, winRAR, 7-zip or similar tools, say c:\ folder.

4. Create a new environment variable called ANT_HOME that points to the Ant installation folder, in this case c:\apache-ant-1.8.2-bin folder.

5. Append the path to the Apache Ant batch file to the PATH environment variable. In our case this would be the c:\apache-ant-1.8.2-bin\bin folder.

# Verifying Apache Ant Installation

To verify that Apache Ant has been successfully installed on your computer, open up a command prompt and type ant.

You should see an output similar to:

    C:\>ant -version
    Apache Ant(TM) version 1.8.2 compiled on December 20 2010

If you do not see the above, then please verify that you have followed the installation steps properly.

# Installing Eclipse

This tutorial also covers integration of Ant with Eclipse IDE. So if you haven't installed Eclipse already, please download and install Eclipse

To install Eclipse:

1. Download the latest Eclipse binaries from www.eclipse.org

2. Unzip the Eclipse binaries to a convenient location, say c:\

3. Run Eclipse from c:\eclipse\eclipse.exe

Advertisement

Online Image Processing

Indian Baby Names