java-native/jssc

org.slf4j.impl package is missing in jssc-2.9.2.jar version

rubenguies opened this issue · 2 comments

Using eclipse in Windows 10, I'm getting these notifications. It looks like the org.slf4j.impl package is not present in the jssc-2.9.2.jar library.

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.

image

This is quite natural, as the jssc is not bundling any logger implementation, only the API. The most hassle-free solution to suppress the warnig is probably to put this jar in the classpath of your project.

Note, that to my knowledge, the slf4j is only used by jssc's dependency - native lib loader, and by not having any logger on the classpath, you loose the ability to see the debug/error logs when initializing jssc, but it is optional and the library is otherwise functional.

Fixed adding the jar you recommended, thanks @pietrygamat