Contents
Class UnsatisfiedLinkError in Java
UnsatisfiedLinkError is thrown from an application if the java virtual machine can not find an appropriate native-language definition of a method but declared as native.
in short, this exception signals that Java cannot satisfy all of the links in a class that it has loaded.
An UnsatisfiedLinkError is thrown when the implementation of a native method cannot be found.
The structure of the Class UnsatisfiedLinkError is given as:
public class java.lang.UnsatisfiedLinkError extends java.lang.LinkageError{
//constructor
public UnsatisfiedLinkError();
//constructs an empty UnsatisfiedLinkError object that is an object with no message specified.
public UnsatisfiedLinkError(String message);
//constructs an UnsatisfiedLinkError object with the message specified.
}
The class UnsatisfiedLinkError also inherits methods from class Object and Throwable.
From Object class | From Throwable class |
---|---|
clone() | fillInStackTrace() |
getClass() | getMessage() |
notify() | printStackTrace() |
wait() | printStackTrace(PrintWriter) |
wait(long, int) | getLocalizedMessage() |
wait(long) | printStackTrace(PrintStream) |
equals(Object) | |
toString() | |
finalize() | |
hashCode() | |
notifyAll() |