no jniopencv_core in java.library.path


eclipse控制台消息:no jniopencv_core in java.library.path

今天在這個問題上折騰了好久好久,查找了好多文檔,主要是看http://answers.opencv.org/question/8288/opencv-244-in-javalibrarypath-error/ 這個網站主要解決的不是這個問題,但是還是有些許作用。

主要參考:http://www.opendebug.com/article/540720

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_core245

此時我裝的是opencv2.4.4,然后不得不重新裝opencv2.4.5版本。進行配置:http://blog.csdn.net/haoba1987/article/details/8175390(參考)

首先我自己寫了一段代碼,查看java.library的位置:System.out.println(System.getProperty("java.library.path"));

找到自己本地的java.library.path,假設為X。然后把opencv_core245.dll放到X目錄下,再進行調試,之后又會出現說缺什么什么文件,你就在opencv里面找到

這些文件,一一放到X下,這就ok了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM