aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Task : ClassNotFoundError" Watch "Ant Task : ClassNotFoundError" New topic

Ant Task : ClassNotFoundError

ranua agarwal

Joined: Mar 31, 2010
Posts: 25

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?

David Newton

Joined: Sep 29, 2008
Posts: 12617

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

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