J
james via JavaKB.com
Hi ,
I was trying the code at
http://www.uk-dave.com/bytes/java/jmf-framegrab.shtml. At the beginning i had
an error at the line 24 with the device error. I figured out this error.
But now i have an exception in the thread
Just in the next line 25
at FrameGrab.main(FrameGrab.java:25)
// Create capture device
CaptureDeviceInfo deviceInfo = CaptureDeviceManager.getDevice("vfw:
Microsoft WDM Image Capture (WIN32):0");
Player player = Manager.createRealizedPlayer(deviceInfo.getLocator());
player.start();
Im using Windows 2000 Pro and JDK 1.5.0-02
Can you tell me why i got this error ?
Thanks and regards,
Jeremy
--
Hi ,%0d%0a %0d%0aI was trying the same codecode. At the beginning i had an
error at the line 24 with the device error. I figured out this error. %0d%
0aBu now i have an exception in the thread %0d%0aJust in the next line 25 %0d%
0a>Exit code: 0%0d%0a>java FrameGrab%0d%0aException in thread "main" java.
lang.NullPointerException%0d%0a at FrameGrab.main(FrameGrab.java:25)%0d%
0a>Exit code: 1%0d%0a %0d%0a// Create capture device%0d%0a CaptureDeviceInfo
deviceInfo = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture
(WIN32):0")
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200506/1
I was trying the code at
http://www.uk-dave.com/bytes/java/jmf-framegrab.shtml. At the beginning i had
an error at the line 24 with the device error. I figured out this error.
But now i have an exception in the thread
Just in the next line 25
Exception in thread "main" java.lang.NullPointerExceptionExit code: 0
java FrameGrab
at FrameGrab.main(FrameGrab.java:25)
Exit code: 1
// Create capture device
CaptureDeviceInfo deviceInfo = CaptureDeviceManager.getDevice("vfw:
Microsoft WDM Image Capture (WIN32):0");
Player player = Manager.createRealizedPlayer(deviceInfo.getLocator());
player.start();
Im using Windows 2000 Pro and JDK 1.5.0-02
Can you tell me why i got this error ?
Thanks and regards,
Jeremy
--
Hi ,%0d%0a %0d%0aI was trying the same codecode. At the beginning i had an
error at the line 24 with the device error. I figured out this error. %0d%
0aBu now i have an exception in the thread %0d%0aJust in the next line 25 %0d%
0a>Exit code: 0%0d%0a>java FrameGrab%0d%0aException in thread "main" java.
lang.NullPointerException%0d%0a at FrameGrab.main(FrameGrab.java:25)%0d%
0a>Exit code: 1%0d%0a %0d%0a// Create capture device%0d%0a CaptureDeviceInfo
deviceInfo = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture
(WIN32):0")
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200506/1