Eclipse - Failed to load class "org.slf4j.impl.StaticLoggerBinder"

amitsharma :

Possible Duplicate:
SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder error

I am using eclipse juno to run someone's else Java code using maven(m2eclipse plugin). But I am getting following message:

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.

On the official website, I found the following fix for this problem:

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.

So I copied slf4j-simple.jar in "C:\Program Files\Java\jdk1.7.0_07\lib". But I am still getting error.

Please guide me what is correct solution. I am a Java newbie.

Also can someone please mention what exactly should be the value for JAVA_HOME, CLASSPATH and CLASS variables. I am confused whether it should be path of jre or jdk or any?

UPDATE:

Following dependency for slf4j are there in project pom.xml.

<dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-api</artifactId>
           <version>1.5.6</version>
           <type>jar</type>
</dependency>
<dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-simple</artifactId>
           <version>1.5.6</version>
</dependency>

I have updated my project. Also the slf4j-api-1.5.6.jar and slf4j-simple-1.5.6.jar are showing up in "Maven dependencies" in my project. And org.slf4j.impl.StaticLoggerBinder.class is also present in slf4j-simple-1.5.6.jar

Konstantinos Margaritis :

Eclipse Juno, Indigo and Kepler when using the bundled maven version(m2e), are not suppressing the message SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". This behaviour is present from the m2e version 1.1.0.20120530-0009 and onwards.

Although, this is indicated as an error your logs will be saved normally. The highlighted error will still be present until there is a fix of this bug. More about this in the m2e support site.

The current available solution is to use an external maven version rather than the bundled version of Eclipse. You can find about this solution and more details regarding this bug in the question below which i believe describes the same problem you are facing.

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

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

How to fix this error: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder?

SLF4J with Logback: NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Eclipse won't load: failed to find a main class

Failed to load specified alias class

Failed to load the JNI shared library on starting Eclipse

Eclipse PDT - Failed to load JavaHL Library

Failed to load JavaHL Library.- linux/eclipse

failed to load jvm.dll eclipse error

Eclipse: Failed to load the JNI shared library

Failed to load class name properties in Apache Ignite

Failed to load Main-class Manifest Attribute

Eclipse "Error: Could not find or load main class"

Could not find or load main class in STS/Eclipse

Eclipse IDE : could not find or load main class

Failed to load driver class org.mariadb.jdbc.Driver

Failed to load driver class com.mysql.jdbc.Driver

Failed to load Glass factory class - OpenJDK OpenJFX on Windows

JUnit Error: Failed to load ApplicationContext: Offending resource: class path resource

Failed to load template ( 404 ) from angular Directive in Typescript class

Open Source Jar file and Failed to load Main-Class manifest

ThreeJS model loader failed to load when used inside a class method

React native: failed to load bundle unexpected super class

How to resolve "Failed to load class" with Spark 3 on EMR for Scala object

Eclipse - JAR creation failed "Class files on classpath not found or not accessible for..."

Failed to open implementation for method added to interface from base class in Eclipse

Error: Could not find or load main class ... - Maven project out of Eclipse

Eclipse cannot load javadoc ("Unknown javadoc format for <class name>")

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive