I am trying to use opencv 2.4.9. with maven, i have two files - the first one is a java file which is in a maven project , and the second one is a java file with all the opencv imports but this file is in the same package, am calling a function of second java file from the first one. The two files run fine separately as java project but when I try to run the complete maven project it throws this error - (java.lang.NoClassDefFoundError: org/opencv/core/Core)
and the build fails.
After a lot of research i found out that the problem is mostly because of System.loadLibrary(Core.NATIVE_LIBRARY_NAME); which am using to load opencv libraries. To rectify this, there are solutions to add opencv.dll to the java folder but since am working os x 10.9.5, i dont have dll's as they are found in the build folder under opencv, but build folder will only be there if we have installed opencv, and i cannot find a .dmg file for opencv. What should i do?
PS: This is my first post on SO.