aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Could not find xxxClass Make sure you have it in your classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Could not find xxxClass Make sure you have it in your classpath" Watch "Could not find xxxClass Make sure you have it in your classpath" New topic
Author

Could not find xxxClass Make sure you have it in your classpath

K Mansoor
Ranch Hand

Joined: Jan 10, 2006
Posts: 52
Folks- I'm busting my brains over this for the last few days, have exhausted all avenues, must be missing something simple, but I am apparently not able to set up the <classpath> correctly for .class files.

<dirset dir="${test-output.home}">
<include name="classes/**/*.class" />
</dirset>

I have tried <fileset> and <classfileset> also but to no avail.


Here is my build.xml:



when I run it:
$ ant run -verbose




Help!!! save my sanity.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

Try changing line 30 to:



You do not want to include class files in the classpath, instead you want to include the base directory that include that class files within a directory path that reflects their packages.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not find xxxClass Make sure you have it in your classpath