java.lang
Class NoClassDefFoundError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.NoClassDefFoundError
public class NoClassDefFoundError
- extends LinkageError
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.
NoClassDefFoundError
public NoClassDefFoundError()
- Create an error without a message.
NoClassDefFoundError
public NoClassDefFoundError(String s)
- Create an error with a message.
- Parameters:
s
- the message