java.lang
Class NoClassDefFoundError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--java.lang.LinkageError
|
+--java.lang.NoClassDefFoundError
A NoClassDefFoundError
is thrown when a classloader or the
Java Virtual Machine tries to load a class and no definition of the class
can be found. This could happen when using the new
expression
or during a normal method call. The reason this would occur at runtime is
because the missing class definition existed when the currently executing
class was compiled, but now that definition cannot be found.
Authors:- Brian Jones
- Tom Tromey <tromey@cygnus.com>
NoClassDefFoundError
public NoClassDefFoundError()
Create an error without a message.
NoClassDefFoundError
public NoClassDefFoundError(java.lang.String s)
Create an error with a message.
Parameters:
NoClassDefFoundError
is thrown when a classloader or the Java Virtual Machine tries to load a class and no definition of the class can be found. This could happen when using thenew
expression or during a normal method call. The reason this would occur at runtime is because the missing class definition existed when the currently executing class was compiled, but now that definition cannot be found.