Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.U`enter code here`nsatisfiedLinkError: 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)

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

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.U`enter code here`nsatisfiedLinkError: 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.

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.U`enter code here`nsatisfiedLinkError: 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.

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 Environment: win7 64bit opencv-2.4.6 jdk1.7.0_21 jdk1.7.0_21

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