Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Tonnie Fanadez
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tonnie Fanadez
UX Design Techdegree Graduate 22,795 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tonnie Fanadez
UX Design Techdegree Graduate 22,795 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

Thank you for posting your solution!

3 Answers

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

Gabriel Murut
Gabriel Murut
5,418 Points

Thanks Tonnie, still working on June 2020!

Thanks Tonnie, it helped. December 2020.