Ask Your Question

Yu-Hsuan Lin's profile - activity

2012-11-03 19:24:19 -0600 received badge  Editor (source)
2012-11-03 18:16:18 -0600 answered a question Wrapping OpenCV with desktop Java: Building for 64-bit x86

Great work!!

But sorry for asking a weird problem... I downloaded 2.4.3 then compiled them with "BUILD_opencv_java=ON", but I didn't see any keywords like "System.loadLibrary".

So after I make install and add opencv-2.4.3.jar to my project, any usage in this library will always show "java.lang.UnsatisfiedLinkError"....

Is there anything I forgot to do before using this library? ex. load libopencv_java manually? Or something else?

Thanks!!

update Manually load libopencv_java worked. these method are worked ok:

  1. Add library opencv_java into system default java.library.path.

    String property = System.getProperty("java.library.path");

  2. Add custom native library path under the opencv jar using Eclipse IDE.

  3. Using System.load("/path/to/opencv_java") to load the lib explicitly specified absolute path.

After that, System.loadLibrary("opencv_java") will load the library properly. Is there other easy way to load the library?