This blog is subject the DISCLAIMER below.

Thursday, March 06, 2008

Setting Up ANT !!!

One of the most boring tasks is to set up ant to work on your computer, it is really a a very boring task that i usually spend a good amount of time doing and if i need to set it up again for any reason i discover that i do not remember and the spaghetti of environment variables begin :S. So, this post is to remind me rather than any body else what i need to do when setting up ANT :).

After downloading ANT, you need to specify some paths in the environment variables in order to work just by writing "ant" on the command line:

-In case you do not know where to find the environment variables :
right click on my computer -> advanced -> Environment variables.

-Make sure you have a JDK installed, and set the variable JAVA_HOME with the installation path of the JDk. e.g; c:\jdk1.6.0_02

- Make a variable named ANT_HOME with the path to installation directory to ant, e.g; C:\apache-ant-1.7.0

- MAKE SURE to add the path to the bin folders of both the jdk and ant to the "path" variable. The "path" variable must contain these two entries:

Hopefully, you will get ANT working by now. If you do not know what ANT is, you can wait to see the coming post :).

No comments: