首页 > 代码库 > opencv和javacv版本不一致

opencv和javacv版本不一致

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_highgui in java.library.path    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)    at java.lang.Runtime.loadLibrary0(Runtime.java:849)    at java.lang.System.loadLibrary(System.java:1088)    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)    at com.googlecode.javacpp.Loader.load(Loader.java:586)    at com.googlecode.javacpp.Loader.load(Loader.java:540)    at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:79)    at com.cn.main.ReadImage.main(ReadImage.java:17)Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\javacpp97080304735100\jniopencv_highgui.dll: Cant find dependent libraries    at java.lang.ClassLoader$NativeLibrary.load(Native Method)    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)    at java.lang.Runtime.load0(Runtime.java:795)    at java.lang.System.load(System.java:1062)    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:700)    ... 4 more

 

问题原因:opencv和javacv版本不一致导致的,

版本不一致

 

opencv和javacv版本不一致