This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 5852
    
    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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Could not find xxxClass Make sure you have it in your classpath
 
jQuery in Action, 3rd edition