SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder", nothing helps

I created a default Drools project, tried to run it, but I have this error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

what's wrong? I haven't changed anything in the project. Btw I dont have pom.xml file, should I create one? I have checked some solutions but nothing helps please help

+3


source to share


1 answer


Add a runtime dependency on logback-classic

. Or if you are not using maven / gradle / etc, add classic javascript to your classpath.

<!-- Logging -->
<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
  <groupId>ch.qos.logback</groupId>
  <artifactId>logback-classic</artifactId>
  <scope>runtime</scope>
</dependency>

      



See http://www.slf4j.org for details .

+2


source







All Articles