Issue
I am using a Raspberry Pi 3 and a camera module. I am trying to take a picture using Java in NetBeans. I had to get a jrpicam-1.0.1.jar file for the Raspberry Pi lib. I got it from here, https://github.com/Hopding/JRPiCam.
I am just trying to run this basic code but i get the error.
public class camera{
RPiCamera piCamera = new RPiCamera();
piCamera.takeStill("picture.jpg);
}
Solution
See https://github.com/Hopding/JRPiCam/blob/master/src/main/java/com/hopding/jrpicam/RPiCamera.java#L80
You need the raspistill
program installed so your program can call it.
Answered By - Thorbjørn Ravn Andersen
Answer Checked By - Willingham (JavaFixing Volunteer)