How can I access the camera on my macbook pro to use as input in a java program?
You probably want to use the QTKit library. Check out this guide (for Objective-C applications, but Java can also access the system APIs using different bindings, so you should be able to use them in Java).