title: XUGGLE ERROR: Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
body: <p>I am trying to execute the following code:</p>
  
  <pre><code>import com.xuggle.mediatool.IMediaReader;
  import com.xuggle.mediatool.IMediaWriter;
  import com.xuggle.mediatool.ToolFactory;
  public class vidcon {
  
      /**
       * @param args
       */
      public static void main(String[] args) {
          // TODO Auto-generated method stub
          IMediaReader reader = ToolFactory.makeReader("test.m4v");
          IMediaWriter writer = ToolFactory.makeWriter("out.flv");
  
          reader.addListener(writer);
          while(reader.readPacket() == null)
              ;
      }
  }
  </code></pre>
  
  <p>But it is is giving me this error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
      at com.xuggle.ferry.JNILibrary.&lt;clinit&gt;(JNILibrary.java:42)
      at com.xuggle.ferry.FerryJNI.&lt;clinit&gt;(FerryJNI.java:14)
      at com.xuggle.ferry.Ferry.&lt;clinit&gt;(Ferry.java:25)
      at com.xuggle.xuggler.XugglerJNI.&lt;clinit&gt;(XugglerJNI.java:19)
      at com.xuggle.xuggler.IContainer.&lt;clinit&gt;(IContainer.java:1622)
      at com.xuggle.mediatool.MediaReader.&lt;init&gt;(MediaReader.java:137)
      at com.xuggle.mediatool.ToolFactory.makeReader(ToolFactory.java:77)
      at vidcon.main(vidcon.java:11)
  Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 8 more
  </code></pre>
  
  <p>I have added SLF4J to my referenced libraries, but have no idea why this is not working.</p>
  
  <p>Running on WIN 7, tried in eclipse and netbeans</p>
  
  <p>Any idea?</p>