I have installed the Javacv jar file here : http://www.java2s.com/Code/Jar/j/Downloadjavacvjar.htm
After extracting the zip file I put the .jar file in the ext folder located inside the jre folder.
But whenever i try to run a code like this after importing the proper libraries
IplImage img;
while (true) {
//inser grabed video fram to IplImage img
img = grabber.grab();
//Set canvas size as per dimentions of video frame.
canvas.setCanvasSize(grabber.getImageWidth(), grabber.getImageHeight());
if (img != null) {
//Flip image horizontally
cvFlip(img, img, 1);
//Show video frame in canvas
canvas.showImage(img);
}
i get an error like this :
error: cannot access Pointer
if (img != null) {
class file for com.googlecode.javacpp.Pointer not found