Hi all, I have a problem with JFM.
i am trying to capture an image from my web cam.
i can show the image through my JMF Studio but when i try to use a code it looks like it doesnt know that the device even exists.
here is the code:

when i am trying it it says "Exception in thread "main" java.lang.NullPointerException
at capture.main(capture.java:25)"
its like it doesnt know the device exists even though i can use it through the JMF studio.
and if i am trying to rum just from the variable "device" to the end(and putting all the rest in "//" it says "no device".
what should i do.
I even tried to reinstall it in another directory and run as admin but it did not work.