java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory


Samebug tips

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 with java -cp yourClassPath or at your IDE if you're using one.


9 months ago
Expert tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.


7 months ago
Expert tip

Solutions on the web

Solution icon of terracotta
via Terracotta by tquinn10, 1 year ago
org/slf4j/LoggerFactory

Solution icon of terracotta
via Terracotta by vaedama, 1 year ago
org/slf4j/LoggerFactory

Solution icon of stackoverflow
via Stack Overflow by Subodh230
, 1 year ago
org/slf4j/LoggerFactory

Solution icon of googlegroups
via Google Groups by MadOtis, 1 year ago
org/slf4j/LoggerFactory

Solution icon of googlegroups
via Google Groups by Arun kutty, 1 year ago
org/slf4j/LoggerFactory

Solution icon of googlegroups
via Google Groups by MadOtis, 1 year ago
org/slf4j/LoggerFactory

Solution icon of terracotta
via Terracotta by rajneeka, 1 year ago
org/slf4j/LoggerFactory

Solution icon of web
org/apache/commons/logging/LogFactory

Solution icon of oraclecommunity
via Oracle Community by 843830, 1 year ago
org/apache/commons/logging/LogFactory

Solution icon of terracotta
via Terracotta by sriram81, 1 year ago
org/apache/commons/logging/LogFactory

Stack trace

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at org.quartz.impl.StdSchedulerFactory.<init>(StdSchedulerFactory.java:274)
	at org.quartz.impl.StdSchedulerFactory.getDefaultScheduler(StdSchedulerFactory.java:1498)
	at com.ac.ibats.utils.quartz.QuartzTest.main(QuartzTest.java:13)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 3 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 5 days ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
4 times, 8 months ago
Once, 9 months ago
2413 more bugmates