title: Get logging working with Gate
body: <p>I'm a newbie to both Java and Gate so I'll give my detailed steps. I'm trying to use Stanford pos tagger within my java application but it gave me this error:</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  Reading POS tagger model from file:/home/khaled/smartgit/projects/MicroblogsAnnotator/GATE_Developer_8.4.1/plugins/Stanford_CoreNLP/resourcs/english-left3words-distsim.tagger ... done [2.6 sec].
  </code></pre>
  
  <p>following another question here i downloaded  "slf4j-log4j12.jar" and tried to include it in my class path. I'm not sure if that's the correct way to add it but to do so, from netbeans i clicked on </p>
  
  <blockquote>
    <p>project->Properties->Libraries->add Jar</p>
  </blockquote>
  
  <p>running again now it gives me another error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at gate.util.GateClassLoader.loadClass(GateClassLoader.java:183)
      at gate.util.GateClassLoader.loadClass(GateClassLoader.java:142)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)
      at edu.stanford.nlp.io.IOUtils.&lt;clinit&gt;(IOUtils.java:42)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:765)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.&lt;init&gt;(MaxentTagger.java:298)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.&lt;init&gt;(MaxentTagger.java:263)
      at gate.stanford.Tagger.init(Tagger.java:129)
      at gate.Factory.createResource(Factory.java:432)
      at gate.Factory.createResource(Factory.java:139)
      at gate.Factory.createResource(Factory.java:121)
      at MicroblogsAnnotator.GateTool.CreateController(GateTool.java:110)
      at MicroblogsAnnotator.GateTool.TwitIE(GateTool.java:185)
      at MicroblogsAnnotator.GateTool.RunTwitIE(GateTool.java:207)
      at MicroblogsAnnotator.MicroblogsAnnotator.main(MicroblogsAnnotator.java:36)
  Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 31 more
  Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at gate.util.GateClassLoader.loadClass(GateClassLoader.java:183)
      at gate.util.GateClassLoader.loadClass(GateClassLoader.java:142)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)
      at edu.stanford.nlp.io.IOUtils.&lt;clinit&gt;(IOUtils.java:42)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:765)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.&lt;init&gt;(MaxentTagger.java:298)
      at edu.stanford.nlp.tagger.maxent.MaxentTagger.&lt;init&gt;(MaxentTagger.java:263)
      at gate.stanford.Tagger.init(Tagger.java:129)
      at gate.Factory.createResource(Factory.java:432)
      at gate.Factory.createResource(Factory.java:139)
      at gate.Factory.createResource(Factory.java:121)
      at MicroblogsAnnotator.GateTool.CreateController(GateTool.java:110)
      at MicroblogsAnnotator.GateTool.TwitIE(GateTool.java:185)
      at MicroblogsAnnotator.GateTool.RunTwitIE(GateTool.java:207)
      at MicroblogsAnnotator.MicroblogsAnnotator.main(MicroblogsAnnotator.java:36)
  Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 31 more
  </code></pre>