Ask Your Question

Revision history [back]

How to Run Simple OpenCV File in Mac NetBeans

 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