我试图在NetBeans中使用OpenCV 2.4.9和JavaCV 0.7跟随tutorial但没有成功:
它在这一行上出错:Loader.load(opencv_objdetect.class);
线程“AWT-EventQueue-0”中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有jniopencv_highgui at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) 在java.lang.Runtime.loadLibrary0(Runtime.java:849) 在java.lang.System.loadLibrary(System.java:1088) at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711) 在com.googlecode.javacpp.Loader.load(Loader.java:586) 在com.googlecode.javacpp.Loader.load(Loader.java:540) 在com.googlecode.javacv.cpp.opencv_highgui。(opencv_highgui.java:79) at com.forms.VirtualDressingApp.startCamera(VirtualDressingApp.java:87) 在com.forms.VirtualDressingApp。(VirtualDressingApp.java:73) at com.forms.VirtualDressingApp $ 11.run(VirtualDressingApp.java:603) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access $ 200(EventQueue.java:103) at java.awt.EventQueue $ 3.run(EventQueue.java:694) at java.awt.EventQueue $ 3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain $ 1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) 引起:java.lang.UnsatisfiedLinkError:C:\ Users \ Mohit \ AppData \ Local \ Temp \ javacpp5092527754081 \ jniopencv_highgui.dll:找不到依赖库 at java.lang.ClassLoader $ NativeLibrary.load(Native Method) 在java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) 在java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851) 在java.lang.Runtime.load0(Runtime.java:795) 在java.lang.System.load(System.java:1062) 在com.googlecode.javacpp.Loader.loadLibrary(Loader.java:700) ......还有20个
有人遇到类似的问题吗?