title: Eclipse - Failed to load class "org.slf4j.impl.StaticLoggerBinder"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11916706/slf4j-failed-to-load-class-org-slf4j-impl-staticloggerbinder-error">SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder error</a>  </p>
  </blockquote>
  
  
  
  <p>I am using <strong>eclipse juno</strong> to run someone's else Java code using <strong>maven</strong>(m2eclipse plugin). But I am getting 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.
  </code></pre>
  
  <p>On the <a href="http://www.slf4j.org/codes.html" rel="noreferrer">official website</a>, I found the following fix for this problem:</p>
  
  <pre><code>This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. 
  This happens when no appropriate SLF4J binding could be found on the class path. 
  Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.
  </code></pre>
  
  <p>So I copied slf4j-simple.jar in <strong>"C:\Program Files\Java\jdk1.7.0_07\lib"</strong>. But I am still getting error.</p>
  
  <p>Please guide me what is correct solution. I am a Java newbie.</p>
  
  <p>Also can someone please mention what exactly should be the value for <code>JAVA_HOME</code>, <code>CLASSPATH</code> and <code>CLASS</code> variables. I am confused whether it should be path of <code>jre</code> or <code>jdk</code> or any?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Following dependency for <code>slf4j</code> are there in project <code>pom.xml</code>. </p>
  
  <pre><code>&lt;dependency&gt;
             &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
             &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
             &lt;version&gt;1.5.6&lt;/version&gt;
             &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
             &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
             &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
             &lt;version&gt;1.5.6&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I have updated my project. Also the <code>slf4j-api-1.5.6.jar</code> and <code>slf4j-simple-1.5.6.jar</code> are showing up in <strong>"Maven dependencies"</strong> in my project. And <code>org.slf4j.impl.StaticLoggerBinder.class</code> is also present in <code>slf4j-simple-1.5.6.jar</code></p>