Ask Your Question

minly's profile - activity

2016-01-11 06:22:22 -0600 received badge  Notable Question (source)
2015-02-17 18:21:49 -0600 received badge  Popular Question (source)
2013-09-04 01:13:07 -0600 commented question UnsatisfiedLinkError given by Highghui.imread() on java

I have found where the problem is. I should load the native library in the code which I didn't realized before. I really should look at the example in opencv first.

2013-09-03 08:46:55 -0600 commented question UnsatisfiedLinkError given by Highghui.imread() on java

U r right, it is a general problem. I put the directory that contains opencv-java246.dll in PATH and CLASSPATH. And opencv libs were indeed chosen to be built as static libs. But the problem is still there.

2013-09-03 06:21:36 -0600 received badge  Editor (source)
2013-09-03 06:18:50 -0600 asked a question UnsatisfiedLinkError given by Highghui.imread() on java

I want to use opencv in eclipse, so I built the opencv with java, and used it in eclipse. But I ran into the following problem when reading image using imread().

 Mat image = Highgui.imread("f:/smoothed1.jpg");

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.Highgui.imread_1(Ljava/lang/String;)J
    at org.opencv.highgui.Highgui.imread_1(Native Method)
    at org.opencv.highgui.Highgui.imread(Highgui.java:352)
    at HelloCV.main(HelloCV.java:12)

Environment: win7 64bit opencv-2.4.6 jdk1.7.0_21

I searched a lot and have checked the native library path, but not work. So, any help is appreciated. Thanks.

2013-09-02 22:34:06 -0600 answered a question Highgui.imread() on Java gives UnsatisfiedLinkError

Have you solved this problem? I ran into the same problem and searched a lot, but result not found. If you have solved, your share will be appreciated. Thanks.