Reputation: 109
I have started learning OpenCV Java and this is the program I have written to test the OpenCV setup:
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class FirstProgram
{
public static void main(String args[])
{
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat mat = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println(mat.dump());
}
}
But on running this, Eclipse shows the error: "Error: Could not find or load main class FirstProgram Caused by: java.lang.ClassNotFoundException: FirstProgram"
I have already setup the user libraries and added the libraries to the project folder. (Screenshots linked)
How do I resolve this issue ?
Upvotes: 0
Views: 139