Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv-2.4.4 in java.library.path error

following the tutorial and writing in eclipse import org.opencv.core.CvType; import org.opencv.core.Mat; public class Main {

/**
 * @param args
 */
public static void main(String[] args) {
System.loadLibrary("opencv_java244");

    Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
    System.out.println("m = " + m.dump());

}

} I get Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at Main.main(Main.java:9) same problem with netbeans thought the libraries exist including the opencv native i.e libopencv.so

click to hide/show revision 2
No.2 Revision

opencv-2.4.4 in java.library.path error

following the tutorial and writing in eclipse

import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class Main {

/**
{
 * @param args
 */
 public static void main(String[] args) {
 System.loadLibrary("opencv_java244");
      Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
     System.out.println("m = " + m.dump());
     }
}

} I get

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
    at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    at java.lang.System.loadLibrary(System.java:1047)
    at Main.main(Main.java:9)

same problem with netbeans thought the libraries exist including the opencv native i.e libopencv.so