Friday, December 27, 2013

java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Problem:  
You need to add SLF4J jar file to your classpath.

Solution: 
Add the SLF4J jar file to your class path or specify the maven dependency in pom.xml file.
<dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-api</artifactId>
           <version>1.7.5</version>
</dependency>

0 comments: