title: StaticLoggerBinder, Drools, Eclipse
body: <p>I'm a total novice to executing in the Java environment, Eclipse and Drools.  But I saw the same question from someone else who never got an answer, so I'll post my problem.</p>
  
  <p>I've followed the installation instructions for Drools in Eclipse.  Then tried to run <code>DroolsTest.Java</code> and get the following message:</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.
  java.lang.NullPointerException
          at com.sample.DroolsTest.main(DroolsTest.java:23) 
  </code></pre>
  
  <p>The message at the mentioned website suggested adding a .jar (just one of them) to the Classpath.  I had one of them in my Drools 6 Runtime directory, so added it to my classpath.  See below.</p>
  
  <p>Classpath: C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\0 TM Stuff\BRE Review\Drools 6 Runtime\slf4j-api.jar</p>
  
  <p>I've done the install on 2 different laptops, Windows 7 and got the same result.</p>
  
  <p>I'm dead in the water now.  Any ideas to get past this situation are greatly appreciated.</p>
  
  <p>Terry</p>
  
  <p>Here is the code.  This is the problem line <code>kSession.insert(message);</code></p>
  
  <pre><code>package com.sample;
  
  import org.kie.api.KieServices;
  import org.kie.api.runtime.KieContainer;
  import org.kie.api.runtime.KieSession;
  </code></pre>
  
  <p>/**
   * This is a sample class to launch a rule.
   */
      public class DroolsTest {</p>
  
  <pre><code>    public static final void main(String[] args) {
          try {
          // load up the knowledge base
          KieServices ks = KieServices.Factory.get();
              KieContainer kContainer = ks.getKieClasspathContainer();
          KieSession kSession = kContainer.newKieSession("ksession-rules");
  
          // go !
              Message message = new Message();
              message.setMessage("Hello World");
              message.setStatus(Message.HELLO);
              kSession.insert(message);
              kSession.fireAllRules();
          } catch (Throwable t) {
              t.printStackTrace();
          }
      }
  
      public static class Message {
  
          public static final int HELLO = 0;
          public static final int GOODBYE = 1;
  
          private String message;
  
          private int status;
  
          public String getMessage() {
              return this.message;
          }
  
          public void setMessage(String message) {
              this.message = message;
          }
  
          public int getStatus() {
              return this.status;
          }
  
          public void setStatus(int status) {
              this.status = status;
          }
  
      }
  
  }
  </code></pre>