Monday, December 1, 2008

Published 12/01/2008 by with 1 comment

Exception in thread "main" java.lang.NoClassDefFoundError: [ClassName]

If a class file does not exist or the class is in such a package which is not in the CLASSPATH but you are trying to run that class, then you may see "Exception in thread "main" java.lang.NoClassDefFoundError: [ClassName]". Sometimes, by mistake, we(the students) try to execute a Java program without compiling it successfully. If a Java class is not compiled successfully, no class file (a file with...
Read More
    email this       edit