Java Opencv unsatisfiedLinkError , but native library is loaded

asked 2016-04-01 13:06:40 -0600

I am trying to run some program on opencv, but I am getting this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError:  
org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0(Ljava/lang/String;)J

I have already loaded the library, libopencv_java310.so by using this code:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

I have also added the path to the native library.

I have searched a lot on the internet, but the only reason this error comes, is due to native library is not loaded. What could be the other reason of getting this error.

Can anyone help....! Any help will be appreciated.

edit retag flag offensive close merge delete

Comments

are you trying to run this on android ?

berak gravatar imageberak ( 2016-04-01 13:12:23 -0600 )edit

Thanks for your reply, I am using this on Linux. Actually, I am getting this error when I am using Opencv with Hadoop. The native library is loaded, but still i am getting the above error. Do you have any idea, what could be the reason...!

Gurinderbeer Singh gravatar imageGurinderbeer Singh ( 2016-04-01 13:15:42 -0600 )edit