title: How do I fix "SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"."
body: <p>I have an application that has the following error 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>This message occurs after I attempt to run any script for the application. I have found that, as it says, it does not create logs, so I have come up empty handed when something fails. </p>
  
  <p>I am running this in Amazon Linux 2 which is closest to CentOS and Redhat. </p>
  
  <p>I have found the following resources:
  This issue is addressed here: <a href="http://www.slf4j.org/codes.html#StaticLoggerBinder" rel="noreferrer">http://www.slf4j.org/codes.html#StaticLoggerBinder</a>
  I can get the jar I need from here: <a href="https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.6.2/slf4j-simple-1.6.2.jar" rel="noreferrer">https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.6.2/slf4j-simple-1.6.2.jar</a>
  After taking this jar and dropping it into my application's /lib, nothing changes. </p>
  
  <p>Other articles describe adding this file to the class path. In Linux, I get this:</p>
  
  <pre><code># java -classpath /opt/opendj/lib/slf4j-simple-1.6.2.jar org.slf4j.impl.StaticLoggerBinder
  Error: Could not find or load main class org.slf4j.impl.StaticLoggerBinder
  # java -jar /opt/opendj/lib/slf4j-simple-1.6.2.jar org.slf4j.impl.StaticLoggerBinder
  no main manifest attribute, in /opt/opendj/lib/slf4j-simple-1.6.2.jar
  </code></pre>
  
  <p>Am I trying to add it to the class path right?</p>
  
  <p>If needed, you can reproduce this issue by doing the following:
  Steps to reproduce the behavior:
  Install a fresh version of OpenDJ onto CentOS or Amazon Linux2 EC2 Instance. Install java 1.8.0
  specifically java-1.8.0-openjdk
  Install the server in any configuration, then run a status script.</p>
  
  <p>Expected behavior
  Logs should generate and no warning message can be presented.</p>