It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception oin thread  "main"" Watch "Exception oin thread  "main"" New topic
Author

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
Greenhorn

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


Sapna
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception oin thread "main"
 
Similar Threads
Trying to run my first program: java.lang.NoClassDefFoundError
NoClassDefFoundError
please help me to set the path
problem in running t he program
NoClassDefFoundError