How to install Ant on Windows XP

  • Download latest version from Apache.org
  • Add the bin directory to your path.
  • Set the ANT_HOME environment variable to the directory where you installed Ant. On some operating systems, Ant's startup scripts can guess ANT_HOME (Unix dialects and Windows NT/2000), but it is better to not rely on this behavior.
  • Optionally, set the JAVA_HOME environment variable (see the Advanced section below). This should be set to the directory where your JDK is installed.

You can check the basic installation with opening a new shell and typing ant. You should get a message like this

Buildfile: build.xml does not exist! Build failed 

So Ant works. This message is there because you need to write an individual buildfile for your project. With a ant -version you should get an output like

Apache Ant version 1.7.1 compiled on June 27 2008 

Site Search

Who's Online

Abbiamo 2 visitatori e nessun utente online

Contacts

Stats

Visite agli articoli
203647
banner mym
banner mym