It's not a secret anymore!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Problems Running ANT target. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply locked New topic

Problems Running ANT target.

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102

I am doing a fresh installation on my computer. I have installed J2SE5.0, Eclipse3.2, and Tomcat5.2. Everything worked fine, that is, my previous deployed applications on Tomcat are running smootly. Next step was to install Ant(6.5) so that I can use Ant for my projects.

I installed Ant on C:\Progra~1\Ant\apache-ant-1.6.5. I then set the Environment Variables As follows:

PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin;... (... refers to other variables).

Now, I try to run an ant target from Eclipse. When I do so, as soon as the target needs to compile it throws me an error as follows:

I can not understand what I have wrong since I have follows some tutorials over the internet that do not describe anything that I did not already do. I am not really sure if it is an Ant problem. However Javac works fine from TextPad, etc.

Thanks for any answers.
[ September 28, 2006: Message edited by: Simon Joseph Aquilina ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

Continued here:

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Problems Running ANT target.
Similar Threads
Issues Re Environment and Path Variables In Windows XP For JBoss and ANT
'ant' not recognized...
How To Run build.xml?
error in run Ant in Jwsdp1.3
Compilation error while building the project using Ant