So, I am trying to use OpenCV with Eclipse in Mac 10.9.5 in a Maven project for software automation testing.
While using OpenCV i got NoClassDefFoundError so I gave - System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
After which it started giving - Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java249 in java.library.path
So, after a lot of googling i found out that - System.loadLibrary("Complete Path to opencv.dll") works for Windows. But still it doesnt work for Mac as there are no precompiled .dlls. I tried searching for libOpenCV.jnilib/.dylib but couldnt find them as OpenCV is not installed in the Mac. Even if we are able to install it using cmake/macports i couldnt find any build folder with the required .jnilib/.dylib .
Later, I found out this - http://ubaa.net/shared/processing/opencv/
and this https://decohan.wordpress.com/2011/08/11/opencv-processing-eclipse-mac/ but this also doesnt work as when putting -d32 in the arguments tab, it says 32bit not supported by JVM. So, i tried searching 32 bit JDK for Mac, but there is no such JDK.
Apart from it, directly giving the .dll path seems to be a workaround, if you can suggest any better way, then it s better.
So, all in all if anyone can help me regarding this opencv error then it would be a great help. Am trying to do this for a week now. But no luck.
This is the link for my Stack OverFlow post : http://stackoverflow.com/questions/28067336/noclassdeffound-error-because-of-system-loadlibrarycore-native-library-name