This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Task : ClassNotFoundError 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
Bookmark "Ant Task : ClassNotFoundError" Watch "Ant Task : ClassNotFoundError" New topic
Author

Ant Task : ClassNotFoundError

ranua agarwal
Greenhorn

Joined: Mar 31, 2010
Posts: 25
Hi,

Created the following buid file--



Its creating the jar properly, but when trying to execute "ant run", giving following exception--


But this class already present in commons-configuration-1.6.jar, which is in the lib folder.
Can somebody point what m i missing here?

Thanks,
Ranu.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Consider the classpath the "run" task is using.
ranua agarwal
Greenhorn

Joined: Mar 31, 2010
Posts: 25
Thanks David for the response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant Task : ClassNotFoundError
 
Similar Threads
How to excute the build.xml for the ant script
Build problem when including third party jars in classpath using ant
Apache Ant add property file and policy file
an ant question
ant classpath problem