java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
This is because SLF4J jar file needs to be added into your application's classpath. In order to fix this issue you have to provide one of the various SLF4J implementation .jar files in the classpath, as well as the interface .jar file.
- Expert tip
A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line withjava -cp yourClassPath
or at your IDE if you're using one.
Solutions on the web
via Stack Overflow by user2761895
, 1 year agojava.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.walmart.ticketservice.App.
(App.java:32)