UnsatisfiedLinkError is raised when an application tries to load its own library, for example
.so on Linux,.dll on Windows or.dylib on Mac
and that the library does not exist .
In particular, in order to find the required native library, the JVM will look in both the system and PATH environment variable and java.library.path .
Sometimes, if the native library has already been downloaded by the application and the same application tries to download it again, this can lead to an error as well.
How to deal with UnsatisfiedLinkError?
First of all, we need to make sure that the parameter passed in the System.loadLibrary method is correct and that the library exists. Please note that a library extension is not required. Thus, if your library has the name SampleLibrary.dll , you must pass the value of SampleLibrary as a parameter.
In addition, if the library is already loaded with your application and the application tries to download it again, UnsatisfiedLinkError will be selected by the JVM. In addition, you must make sure that the native library is present either in the java.library.path or in the PATH environment library your application. If the library has not yet been found, try specifying the absolute path to the System.loadLibrary method.
To run your application, use the -Djava.library.path argument to explicitly specify your own library. For example, using a terminal (Linux or Mac) or a command prompt (Windows), run your application by running the following command:
java -Djava.library.path= "<path_of_your_application>" βjar <ApplicationJAR.jar>
You have missed a valid team. Use the following
java -Djava.library.path="C:\Opencv2.1.11\opencv\build\java\x64" -jar BlurDetector.jar
or
java -Djava.library.path="C:\Opencv2.1.11\opencv\build\java" -jar BlurDetector.jar
instead of your team
java -Djava.library.path="C:\Users\vivek_elango\Desktop" -jar BlurDetector.jar