Ask Your Question

Revision history [back]

JNI UnsatisfiedLinkError when running ant sample on OSX 10.8.4

I'm encountering an issue similar to this but with a different operating system -

When I run the ant sample from the OpenCV Introduction to Java Development tutorial, I get this output:

Welcome to OpenCV
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(IIIDDDD)J
at org.opencv.core.Mat.n_Mat(Native Method)
at org.opencv.core.Mat.<init>(
at SimpleSample.main(

My system is running:

System Version: OS X 10.8.4 (12E55)
Kernel Version: Darwin 12.4.0


java version "1.7.0_25" Java(TM) SE
Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

I also encounter the same error with opencv versions and 2.4.5.

Can anyone suggest how I might get this working?