java.lang
Class NoClassDefFoundError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.NoClassDefFoundError
- All Implemented Interfaces:
- java.io.Serializable
- 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.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
serialVersionUID
private static final long serialVersionUID
- Compatible with JDK 1.0+.
- See Also:
- Constant Field Values
NoClassDefFoundError
public NoClassDefFoundError()
- Create an error without a message.
NoClassDefFoundError
public NoClassDefFoundError(String s)
- Create an error with a message.