Monday, May 6, 2013

How to Install Apache Ant in Windows



Installing Apache Ant is also easy. T he Java build tool Apache Ant is not required for the installation or normal operation of the JBoss Enterprise Application Platform. However, it is occasionally needed for some configuration tasks and also for building and deploying some applications.

Let’s see how to do it. It can be done with simple steps.

1. Download and Extract
·         Download the Apache Ant binary release from http://ant.apache.org/bindownload.cgi.                               Once it is downloaded, extract it into a preferred installation location.

2. Add the ANT_HOME Environmental Variable
·         On Microsoft Windows, do this by click on the Start Menu and opening the Control Panel then selecting System -> Advanced -> Environment Variables.
·          Create a new variable, calling it ANT _HOME and configure it to point to the ant directory.

3. Include bin in the PATH
·         On Microsoft Windows, do this task by opening the Control Panel then selecting System ->Advanced -> Environment Variables->System Variables -> Path. Create a new variable, calling it ANT _HOME.
·         Next, add a semicolon and %ANT _HOME%\bin to the end of the path value.


ΓΌ          To test the Apache Ant installation, run ant -version from within a command prompt.It should display as
       [localhost]$ ant -version
       Apache Ant version 1.8 com piled on May 06 2013

No comments:

Post a Comment