kiltek kiltek - 3 months ago 40
Java Question

adding openCV to java buildpath in eclipse

I have problems adding openCV to the buildpath of my eclipse-project. I have followed the instructions in the tutorial on this site:

But executing the code fragment gives this console output:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv-java2.4.4 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at camStatisticsTests.RawTests.main(

What do I have to do in order to get openCV working with java and eclipse. i want to use it as a normal java library.


I have found the solution. The tutorial skips the step, where one has to add a dll to the "native build path". The dll is located in "opencv/build/java/x86" for 32-bit java i guess. although i dont know why this is the case. Would be nice, if someone could explain that.