Home » Developer & Programmer » JDeveloper, Java & XML » Exception in thread "main" java.lang.NoClassDefFoundError: mystery/class
Exception in thread "main" java.lang.NoClassDefFoundError: mystery/class [message #90854] Sat, 13 October 2001 09:36 Go to next message
Jaime Pax
Messages: 1
Registered: October 2001
Junior Member
I can't run my mystery file!!! it's an example included in the book of Deitel & Deitel

Yesterday it ran, but not any more, I get this message
Exception in thread "main" java.lang.NoClassDefFoundError: mystery/class

I did not change the source and recompiled, but just recompiled. Plz, I'm stuck with it!!!, as you see, I'm a begginner. Thank you.

----------------------------------------------------------------------
Re: Exception in thread "main" java.lang.NoClassDefFoundError: mystery/class [message #90941 is a reply to message #90854] Wed, 19 December 2001 16:46 Go to previous messageGo to next message
Srinivas
Messages: 138
Registered: June 2000
Senior Member
hi,i am also getting same error ...if u get the solution please let me know...thank you very much...

cheers
Srinivas

----------------------------------------------------------------------
Re: Exception in thread "main" java.lang.NoClassDefFoundError: mystery/class [message #91140 is a reply to message #90854] Tue, 30 April 2002 22:09 Go to previous message
Gusla
Messages: 1
Registered: April 2002
Junior Member
make sur u r puting the current class as well as required classes in claspath
% java -classpath javaclassrequired/whatever.jar:javaclass/others.jar:home/urusername/currentDirectory theCompiledClass
Previous Topic: Query output
Next Topic: Re: JDBC Connection failed
Goto Forum:
  


Current Time: Thu Apr 18 04:31:16 CDT 2024