简体   繁体   中英

eclipse: java.lang.UnsatisfiedLinkError

I'm working on javacv project but every time I try to declare a matrix as 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 search for a solution, i always found that i have to add:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

But i'm always having the same error.

The UnsatisfiedLinkError is thrown at runtime when an application attempts to load a native library and that library does not exist.

It sounds like something went wrong when attaching your library or your library was not set up correctly in your IDE.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM