Errors first run
已回答
Hello;
I am a newbe to Intellij IDE, i have started a course in order to learn Java and eventually making my own app. However, i get a lot of errors so i have uninstalled Java and Inellij and deleted all the left folders, and installed all over again.
But, in the very first simple run i get these errors:
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.
Support says 'placing slf4j-nop.jar on the class path of your application will get rid of this warning message.', how do i do that?
请先登录再写评论。
If you don't use any build system, follow the instructions in this article to add the
slf4j-nop.jarfile as a library. if you use Maven, the corresponding instruction on adding Maven dependency is located here. You can see the article regarding the Gradle dependencies by this link.If you have any further questions, please, let me know.
Thanks for reply; I have added the dependency slf4j-simple-1.6.1.jar to the library, wich should be the solution for this problem seeing this statement : "...If you are responsible for packaging an application and do not care about logging, then placing slf4j-nop.jar on the class path of your application will get rid of this warning message."
However, the menstioned error still keeps occuring....
also placing slf4j-nop.jar = no succes
Is it possible to share the whole project with me so that I can reproduce it? You can use our JetBrains Uploads service to do it and write here the ID you receive.
Hello;
Excuses for my late reply; have uploaded the file and error-message; upload-nr. = 2023_03_17_7uV8YCpX7jGFcSE11ACh4H
Thanks, Rudy
Please, try to add the following line to the dependencies list in the build.gradle.kts file (for example, after line 44:
implementation("org.slf4j:slf4j-nop:2.0.6")Press the Load Gradle Changes button after it:

You could change the dependency name according to the instructions given by the link you provided before:
The dependency name org.slf4j:slf4j-nop:2.0.6 matches the slf4j-nop.jar file.