Error Setting up Basic Network
Hello,
I am trying to use the basic XOR example. However every time I try to run it it generates the following error.
-----
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.encog.neural.networks.BasicNetwork.(Unknown Source)
at org.encog.examples.neural.xorbackprop.test.main(test.java:60)
-----
Line 60 is - BasicNetwork network = new BasicNetwork();
Thank you,
Paul




Encog supports logging. It does this using either JDK logging or log4j, depending on how you set it up. Encog includes the needed JAR's in the archive. If you include these, it should work fine.
encog-core-xxx.jar
slf5j-api-1.5.6.jar
sl4j-jdk14-1.5.6.jar
This will enable Encog with JDK logging.
Thank you! Works great!