Exception in thread

asked 2014-10-22 08:07:18 -0500

My code is like:

import org.opencv.core.*;

public class Maiin {

public static void main(String ar[])
{

    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

    Mat m= Mat.eye(3, 3, CvType.CV_8UC1);

    System.out.println(m.dump());

}

}

and the Error m getting is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_eye(III)J

at org.opencv.core.Mat.n_eye(Native Method)

at org.opencv.core.Mat.eye(Mat.java:1467)

at Maiin.main(Maiin.java:6)
edit retag flag offensive close merge delete

Comments

it did not find the opencv_java.so, or other opencv so dependancies.

try using ant

berak gravatar imageberak ( 2014-10-22 08:16:45 -0500 )edit