java - Why if I import a library.jar, it is necessary to say the native library location? -


i working java in eclipse, , use opencv need import library .jar (for me opencv-2.4.8.jar) , need specify native library location (i.e. libopencv_java248.so). if not, error:
exception in thread "main" java.lang.unsatisfiedlinkerror: no opencv_java248 in java.library.path.

so, why need reference?
why isn't enough import opencv.jar library?

because jar file has java code in it. opencv has more java code, has c/c++ code in native library. code can't put in jar, has put somewhere else, , have is.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -