you need to set the CLASSPATH variable in your system to include the current directory or the location of your class
Yahoo BOSS Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/ILoggerFactory
-
04-06-2022 - |
Question
I am trying to run this Java example but I am receiving the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/ILoggerFactory.
La solution
Autres conseils
NoClassDefFoundError
It can't find the class. Have you imported the required libraries and included it in your classpath?
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow