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 trialIvailo Hristov
6,297 PointsSLF4J and Lambda Expressions not supported
First problem is
"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 import different SLF4J tasks like slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar i download them from maven repository and add by gradle and nothing...
also I have problems with java 8 it says "lambda expressions are not supported at this language level" i try all
File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
but not work Thnks!
3 Answers
Seth Kroger
56,413 PointsIn build.gradle, if there is a line sourceCompatibility = 1.something
or targetCompatibility = 1.something
make sure it equals 1.8. If they aren't present then open Project Structure (Under the File menu or an icon with small blue squares near the right end of the toolbar.) Click Project on the left make sure the SDK and Project language level are 8.
Michael Chan
1,472 PointsI'm still having the issue despite. Can someone help? I am using Spark 2.7.1 and my source compativility is 1.8.
Evangelos Bais
722 PointsI have the same problem, can someone help? Spark edition: 2.9.1 target compatibility:1.8
Ivailo Hristov
6,297 PointsIvailo Hristov
6,297 PointsThank you for the responce, my sourceCompatibility was 1.5
Jose Mejia
16,758 PointsJose Mejia
16,758 PointsI have the same problem. "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 have set to 1.8 and i am using compile 'com.sparkjava:spark-core:2.7.1'
any ideas or help thanks