Eclipse: java.lang.UnsatisfiedLinkError

I am working on a javacv project, but every time I try to declare a matrix as shown below:

Mat trainingData = new Mat();

I get this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J
at org.opencv.core.Mat.n_Mat(Native Method)
at org.opencv.core.Mat.<init>(Mat.java:447)

And when I look for a solution, I always find that I need to add:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

But I always have the same mistake.

+4
source share
1 answer

UnsatisfiedLinkError is fired at runtime when the application tries to load its own library, and this library does not exist.

It seems that something went wrong when you attached your library or your library was not configured correctly in your IDE.

See: http://docs.opencv.org/doc/tutorials/introduction/java_eclipse/java_eclipse.html#java-eclipse

+2
source

All Articles