Errors first run

Answered

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?

 

 

 

 

0
6 comments

If you don't use any build system, follow the instructions in this article to add the  slf4j-nop.jar  file 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. 

0

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

0

also placing slf4j-nop.jar = no succes

0

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. 

0

Hello;

 

Excuses for my late reply; have uploaded the file and error-message; upload-nr. = 2023_03_17_7uV8YCpX7jGFcSE11ACh4H

Thanks, Rudy

0

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:

Placing one (and only one) of slf4j-nop.jar slf4j-simple.jarslf4j-log4j12.jarslf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.

The dependency name org.slf4j:slf4j-nop:2.0.6 matches the slf4j-nop.jar file.

0

Please sign in to leave a comment.