error runing ant in eclipse ant view

Y

yihucd

I have an ant build file that uses third party java package to compile
my java codes. I can run ant manually in DOS command line without any
problem, this is because I add the path and name of the third party
package into CLASSPATH environment variables. However, when I run the
same script under the ECLIPSE ANT view, I got many error saying:
"cannot find my third party java package". What should I do?

I do put these third party package .jar to my project build path. Just
want to mention this.

Thanks,

David
 
L

Larry

Sounds like you have a separate ANT install on your PC. Eclipse has
it's own ANT version as a plugin; that may be why it's working for you
on the command line.

It looks like you can adjust Eclipse's ANT classpath to add 3rd party
JAR's by going to here from the Eclipse menu: Window -> Preferences ->
Ant -> Runtime -> Classpath tab

Click on the "Add External JARS" to point to your ANT 3rd party JAR to
Eclipse's ANT classpath.

Hope this works out for you....

Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top