File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Exception oin thread  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception oin thread  "main"" Watch "Exception oin thread  "main"" New topic

Exception oin thread "main"

Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
Friends I am getting the following error when i m trying to run the program.
Exception in thread "mainjava.lang.NOClassDefFoundError
The program is compiling but not when i run i get the above stated message at console. I am using TextPad. The same program is running in Visual age for java.
advise please,

Anil Jain<br />Sun Certified Java(2) Programmer
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Add your working directory to the CLASSPATH environment variable.
Sapna Korecherla

Joined: Jul 07, 2002
Posts: 10
check ur main method to defined correctly

I agree. Here's the link:
subject: Exception oin thread "main"
It's not a secret anymore!