no jniopencv_core in java.library.path和no jniopencv_highgui in java.library.path

开发环境:win7(32位)+ Eclipse(KEPLER)+ OpenCV-2.4.8 + javacv-0.7 + processing-2.1.1

 

编译报错信息:no jniopencv_core in java.library.path 、 no jniopencv_highgui in java.library.path

 

解决方案:

  1. 检查系统变量PATH是否包含“D:\OpenCV248\build\x86;”若是64位的操作系统则对应为“D:\OpenCV248\build\x64”(具体路径视opencv安装的路径而定);
  2. 在项目新建文件夹“libs”,将javacv-bin下的jar包拷贝至libs下,右击需要的jar包(我的开发环境对应javacv.jar,javacpp.jar,javacv-windows-x86.jar),“Build Path”—》“Add to Build Path”;
  3. 右击项目—》“Build Path”—》“Configure Build Path”—》"Java Build Path"—》“Libraries”—》"JRE System Library"—》“Native library location”,将“D:/OpenCV248/build/x86/vc10/bin”(具体路径视opencv安装的路径而定)添加进来,OK!

你可能感兴趣的:(javacv,opencv,jniopencv_core)