Search code examples
javaopencvpathclasspathjavacv

UnsatisfiedLinkError Using JavaCV in Eclipse on Mac


I'm sure this is going to be some sort of PATH Issue but i'm not sure where i'm going wrong. I am trying to get JavaCV working in my project in Eclipse so I can do some circle detection on images but get the following exception thrown by Eclipse when trying to run one of the sample projects:

java.lang.UnsatisfiedLinkError

I have tried to follow the instructions given at: http://code.google.com/p/javacv/

I have the javacv.jar and jna.jar in the BuildPath of my project. Wht do I need to do to add the correct files to the right paths to get JavaCV working?

I tried adding the jar files to $CLASSPATH but get the same error. I have downloaded and installed OpenCV, not sure what from this folder I need to add to $PATH. Any help is appreciated.


Solution

  • UnsatisfiedLink error mean that one or more native library files could not be linked into your program. This is most frequently caused by the native library files not being in the place where the JVM looks.

    See section 2.7 of http://java.sun.com/docs/books/jni/html/start.html for more detail.