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

Jordan George
Jordan George
9,926 Points

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

Why am I getting this in red?

"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."

2 Answers

are you running dependency spark version 2.3 like craig? or are you using the most up to date version? I was using 2.5 and recieved the same error. The answer was posted a few videos ago i believe but the gist of it was

add

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

to your list of dependencies if it is not already there

Jordan George
Jordan George
9,926 Points

Thanks! That worked. I am using the most up to date version and added the dependency line.