File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 24195

Continued here:

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Problems Running ANT target.
It's not a secret anymore!