Man Person
Man Person

Reputation: 1130

UnsatisfiedLinkError: no opencv_java245

I'm having a difficult time figuring this one out. I have an eclipse project where I created a user library which includes the jar file opencv_java245.jar.

I've tried everything I can think of, adding the jar to the path, adding the directory of the jar to the path variable. I checked my java versions, I've tried VM arguments in run config.
I still get the same UnsatisfiedLinkError on this line System.loadLibrary("opencv_java245");

Right now I have a user library with opencv-245.jar located in C:\OpenCV\opencv\build\java The Native Library Location for it is located in C:/OpenCV/opencv/build/java My PATH variable also has that same location added to it.

Upvotes: 1

Views: 1135

Answers (2)

user3369245
user3369245

Reputation: 71

 System.loadLibrary(Core.NATIVE_LIBRARY_NAME); 

this the code for detect default dll file..

Upvotes: 1

Man Person
Man Person

Reputation: 1130

Actually for future reference for anyone I found the solution. Inside the java folder for OpenCV there is a x64 and x86 folder containing dll files for OpenCV. Copy over either 64 bit or 32 bit dll file to your java folder for OpenCV and it should work.

Upvotes: 0

Related Questions