The moose likes Beginning Java and the fly likes exception error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "exception error" Watch "exception error" New topic
Author

exception error

Patel a
Greenhorn

Joined: Aug 23, 2000
Posts: 11
I have the following error: Exception in thread "main" java.lang.NoClassDefFoundError: Test
Test is the name of my java file.
I have no idea with it means.
so please help
Paul Caudle
Ranch Hand

Joined: Jun 08, 2000
Posts: 64
Hi Kneecap (I hope that was an intended joke, if Patel a is your real name I'm sorry for calling you Kneecap).
I think the solution to your problem lies in one of two spots. The first possible solution is to make sure you are in the same folder as Test.class (the file created when you compiled your java file) when you run java (using "java Test").
The second possible solution is that you are missing a dot and semicolon at the beginning of your classpath in your autoexec.bat file. If this is all greek to you please let me know and I'll do what I can to expand on this one a little more.
Hope that helps.
Paul
 
 
subject: exception error
 
Threads others viewed
throws Error
Why so many Exception Handling classes ?
Hi, someone please explain this.
Running a class in a package
Junit test
MyEclipse, The Clear Choice