How to Run Simple OpenCV File in Mac NetBeans

asked 2015-12-02 09:00:07 -0600

 import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.CvType;
import org.opencv.core.Scalar;
import org.opencv.highgui.Highgui;

public class main {


    static{ System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }

   public static void main( String[] args ) {

   }

}

I added the required Jar openCv in my NetBeans Project and also install opencv in my mac using macport , cmake .

But still I got error and file is not running . Can any body tell me what is the exact problem. Here is the stack trace

edit retag flag offensive close merge delete