title: FMJ Video Capture in Java
body: <p>I'm trying to capture video from a webcam connected via usb, but for some reason FMJ can't load or find the registry file. When I try to run my program, every call to a FMJ function produces the warning:</p>
  
  <pre><code>[time] net.sf.fmj.utility.Registry &lt;init&gt;
  WARNING: Problem loading JMF registry: org/jdom/JDOMException. Using Defaults
  </code></pre>
  
  <p>Consequently, it doesn't recognize the webcam and the program fails.
  The same program works with JMF, but in an effort to make it cross-platform, I'm migrating the code over. I have uninstalled JMF, but I don't understand why its trying to load the JMF registry. I also get the following errors when running fmjregistry.bat:</p>
  
  <pre><code>FINE: PlugInUtility: Unable to register plugin net.sf.fmj.ffmpeg_java
  FINE: PlugInUtility: Unable to register plugin net.sf.fmj.theora_java.NativeOggParser
  FINE: PlugInUtility: Unable to register plugin com.omnividea.media.parser.video.Parser
  FINE: PlugInUtility: Unable to register plugin com.omnividea.media.codec.video.NativeDecoder
  FINE: PlugInUtility: Unable to register plugin com.omnividea.media.codec.video.JavaDecoder
  </code></pre>
  
  <p>all of the above are java.lang.ClassNotFoundException</p>
  
  <p>Please help, video with java is such a big headache</p>