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

,
via github.com by Unknown author

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.

,

you can change your scala version to 2.11.11

Solutions on the web

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at spark.Service.(Service.java:47)
at spark.Spark$SingletonHolder.(Spark.java:49)
at spark.Spark.getInstance(Spark.java:53)
at spark.Spark.(Spark.java:59)
at undefined.MavenTest01.main(MavenTest01.java:20)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
2507 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.