aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes error #300 & #302: cannot access class 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 "error #300 & #302: cannot access class" Watch "error #300 & #302: cannot access class" New topic
Author

error #300 & #302: cannot access class

Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
I just started working with Ant today, using JBuilder 8 Enterprise. When I compile I am getting "error #302: cannot access class" and "error #300: class <classname> not found." Specifically I get:


Below is my ant file:

Aside from the classpath, everything is direct from JBuilder's tutorial. It looks like I have the classes included, but I'm wondering if I missing something. JBuilder is compiling the code just fine, when I do it through the built in tools, and not through ant.
--Mark
[ April 15, 2003: Message edited by: Mark Herschberg ]
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Aha, the secret was I needed include="**/*.java!
BTW, I found a great ant intro here.
--Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error #300 & #302: cannot access class