This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes NoCLassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NoCLassDefFoundError" Watch "NoCLassDefFoundError" New topic
Author

NoCLassDefFoundError

Brendan Fosberry
Ranch Hand

Joined: Dec 16, 2005
Posts: 33
Im trying to compile and run a program which is a .bat executeable which uses a locally compiled class. The problem is that when I try to run I get the above mentioned NoClassDefFoundError, and it tells me it cant find the class...even though its in the same folder.

ARGH. Ive had this problem before, but I dont know how to fix it. Any ideas?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Please post the full error message. Without it, I can only guess what the problem my be. My first guess is that the CLASSPATH variable does not include the location of the class you are trying to execute. You should run "echo %CLASSPATH%" from the command line and paste the output here.

Layne


Java API Documentation
The Java Tutorial
Brendan Fosberry
Ranch Hand

Joined: Dec 16, 2005
Posts: 33
MY HERO!

I added the path to my classpath and it worked! thanks !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoCLassDefFoundError
 
Similar Threads
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError