Sandeep Annapareddy3,140 Points
Error running the project
Hi, when I tried to run the project, I have been getting the following errors:
"C:\Program Files\Java\jdk1.8.0_65\bin\java" "-javaagent:C:\Program 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.
Please let me know how I can fix them. Thanks
Fathima Fas-ha6,847 Points
I also had the same error, I had imported in the Main class
java import static spark.route.HttpMethod.get;
java import static spark.Spark.get;
check whether you have imported the correct one!! :)
Tonnie FanadezUX Design Techdegree Graduate 22,770 Points
If you're here in Oct. 2019 these 3 lines of code might save you.
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'