This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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