Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Jose Mejia
Jose Mejia
16,758 Points

Error when compile

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.

I am using depen. compile 'com.sparkjava:spark-core:2.7.1'

Joseph Cauthen
Joseph Cauthen
7,320 Points

Hi there. Had the same problem. Following the link that is posted, I solved this by adding the slf4j-simple to my project.

compile 'org.slf4j:slf4j-simple:1.7.9'

cheers!

1 Answer

Alec Meyer
Alec Meyer
6,303 Points

compile 'org.slf4j.slf4j-simple:1.7.21' Add that to your build.gradle