The Java example provided with OpenCV called HelloCV doesn't work. This is the example:
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class Main {
public static void main(String[] args) {
System.out.println("Welcome to OpenCV " + Core.VERSION);
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println("m = " + m.dump());
}
}
The output throws UnsatisfiedLinkError, what is this error and how do I solve it. I had to build the OpenCV jar file, I thought I did it correctly but I could have done something wrong when building the library.