0 Replies Latest reply on Sep 23, 2011 11:26 AM by 890119

    Problem in inbuilt Web-camera using JMF


      I am using JavaTM Media Framework 2.1.1e downloaded from below link in my application.
      http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html#7372-jmf-2.1.1e-oth-JPR .

      Main functionality of my app is to use Web-camera.

      My application is working fine on Windows XP and Windows 7 using external Web-Cam device.
      However, the same application is giving problem in accessing in-built Webcam on Windows 7.

      I tried to access in-built Web-Camera from JMStudio app(of JMF..File->Capture->check 'Use video device'-> Press 'Ok'), however JMStudio itself is not able to access in-built web-camera. Always I am getting the error 'Couldn't initialize the Capture Device!'.

      Please note that JMF Registry Editor(JMStudio->Preferences->Capture Device->Detect Capture Devices')is able to detect the inbuilt web-cam device.

      Is this the issue in JMF itself or I can resolve the issue from my application also?

      Also, when I tried to do online JMF diagnostics, I am getting below error.
      Online JMFDiagnostics URL: http://www.oracle.com/technetwork/java/javase/jmfdiagnostics-139189.html

      Java Plug-in 1.6.0_26
      Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
      User home directory = C:\Users\taipakai
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      o: trigger logging
      q: hide console
      r: reload policy configuration
      s: dump system and deployment properties
      t: dump thread list
      v: dump thread stack
      x: clear classloader cache
      0-5: set trace level to <n>
      java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file JMFDiagnostics
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Exception: java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file JMFDiagnostics

      Please suggest.

      Thanks for your help in advance.