All About Class NoClassDefFoundError in Java



NoClassDefFoundError is thrown from an application if the java virtual machine or a class loader tries to load the definition of a class(as part of the normal method call or as part of creating new instance using new operator) and no definition could be found in the path.

The structure of the class NoClassDefFoundError  is given as:


public class java.lang.NoClassDefFoundError extends java.lang.LinkageError{
//constructor
public NoClassDefFoundError();
//constructs an empty NoClassDefFoundError object that is an object with no message specified.
public NoClassDefFoundError(String message);
//constructs an NoClassDefFoundError object with the message specified.

}
 
All About Class NoClassDefFoundError in Java All About Class NoClassDefFoundError in Java Reviewed by Animesh Chatterjee on September 19, 2018 Rating: 5

No comments:

Powered by Blogger.