Possible Duplicate:
Capturing image from webcam in java?
What are the options for capturing image from webcam in java?
I know that JMF is a useful library for this, but it hasn't been updated in the past few years and I would rather not use it.
May be old, but it is quite reliable and simple. Give it a try!
You can find alternatives like FMJ, which is API-compatible with JMF.
Xuggle is very good too.