eclipse控制檯消息:no jniopencv_core in java.library.pathjava
今天在這個問題上折騰了很久很久,查找了好多文檔,主要是看http://answers.opencv.org/question/8288/opencv-244-in-javalibrarypath-error/ 這個網站主要解決的不是這個問題,可是仍是有些許做用。web
主要參考:http://www.opendebug.com/article/540720windows
Seeking solutions! ------ Best solution -------------------------------------------------------- I also encountered this problem, but I was OpenCV version 2.1 so there has always been this problem, but then I replaced with the OpenCV version 2.4.2, and you, and then you can. I said middle note: First, make sure Java and OpenCV is installed the same version (32-bit or 64-bit), and should not be mixed in any case. Second, you have to determine their own project inside a folder libs placed inside javacpp.jar, the javacv.jar, javacv-windows-x86.jar three jar package, and then add these jar files to the project inside is inside the java build path to click ADD JARs, and then select the three packages added to the project to go inside. Finally, the best OpenCV2.4.2 unpacked in the root directory of C. Set the system variable PATH (C:opencvbuildx86vc10bin). These two do a good job should be no problem. ------ Other solutions -------------------------------------------------------- Bangding, the same problem Say this is the version of the problem?But did not find the answer ------ Other solutions -------------------------------------------------------- Doing later in javacv official website to find the answer to the lack of C ++ runtime environment install
通過嘗試,我發現個人問題主要是上面所說的第二個,版本問題。由於在eclipse控制檯消息的下半部分有一句:cause by ……no opencv_core245eclipse
此時我裝的是opencv2.4.4,而後不得不從新裝opencv2.4.5版本。進行配置:http://blog.csdn.net/haoba1987/article/details/8175390(參考)ide
首先我本身寫了一段代碼,查看java.library的位置:System.out.println(System.getProperty("java.library.path"));網站
找到本身本地的java.library.path,假設爲X。而後把opencv_core245.dll放到X目錄下,再進行調試,以後又會出現說缺什麼什麼文件,你就在opencv裏面找到ui
這些文件,一一放到X下,這就ok了。this