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

Jonathan Hector
Jonathan Hector
5,225 Points

Getting a error all the time and it won't compile. Check the link that it lead me to but didn't get it. Please help

/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath .....

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.

Process finished with exit code 100

1 Answer

Need to add another dependency:

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.21</version>
</dependency>

or Gradle Version

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

Reference: http://sparkjava.com/documentation.html#add-a-logger