简体   繁体   中英

Can't solve 'SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”' issue

I am trying to use a biological program and I have this output error when I run it:

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 seen all the threads that are leading with this issue, trying all different binding files with no result. Here is what I have in my bashrc file:

# Set CLASSPATH
export CLASSPATH=$CLASSPATH:/usr/lib/jvm/java-7-oracle/class/slf4j-simple-1.6.6.jar

I have seen that the program uses the 'slf4j-api-1.6.6.jar' (that's why I used the same binding versions) and I am using Ubuntu 16.04.1 LTS.

Any idea?

Thank you!

I was looking the answer from @ThorbjørnRavnAndersen and I had to find the selected classpath inside the files of the program, add the "slf4j-simple-1.6.6.jar" binding to the code and paste it to the path. Finally the error has gone.

Thank you very much for your help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM