Java Intro to Java Web Development with Spark Diving into Web Development Meet Spark

Tonnie Fanadez
Tonnie Fanadez
UX Design Techdegree Graduate 22,771 Points

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

Running to SLFJ error when taking the Spark Course

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.
Tonnie Fanadez
Tonnie Fanadez
UX Design Techdegree Graduate 22,771 Points

If running on the above error which took me hours to resolve just use these 3 lines, it worked for me in October 2019

dependencies {

    compile 'com.sparkjava:spark-core:2.9.1'
    compile 'org.slf4j:slf4j-api:2.0.0-alpha1'
    compile 'org.slf4j:slf4j-simple:2.0.0-alpha1'

}

Thanks Tonnie Fanadez been trying to find a solution for a while now

1 Answer

Greg Witt
Greg Witt
26,968 Points

Thank you for taking the time to post this solution it was very helpful. I got everything running on my machine