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 sourceforge.net by Unknown author, 1 year ago
via neuroph by jordandearsley
, 1 year agovia neuroph by gianni2295
, 2 years agovia Stack Overflow by Ashish Shukla
, 2 years agovia sourceforge.net by Unknown author, 1 year ago
java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.neuroph.core.learning.LearningRule.
(LearningRule.java:64) at org.neuroph.core.learning.IterativeLearning.
(IterativeLearning.java:73) at org.neuroph.core.learning.SupervisedLearning.
(SupervisedLearning.java:94) at org.neuroph.nnet.learning.LMS.
(LMS.java:44) at org.neuroph.nnet.learning.BackPropagation.
(BackPropagation.java:42) at org.neuroph.nnet.learning.MomentumBackpropagation.
(MomentumBackpropagation.java:44) at org.neuroph.nnet.MultiLayerPerceptron.createNetwork(MultiLayerPerceptron.java:179)
at org.neuroph.nnet.MultiLayerPerceptron.
(MultiLayerPerceptron.java:106) at javaapplication1.JavaApplication1.main(JavaApplication1.java:43)