Look right below
image.free()...
Code:
// } catch (AxisCameraException ex) { // this is needed if the camera.getImage() is called
// ex.printStackTrace();
The compiler is complaining that you're not catching a possible exception. Uncommenting the above lines should get your code to work. If you want to learn more about exceptions, check out
Oracle's lesson or any one of many other internet resources.