Error Setting up Basic Network

yaclax's picture

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

SeemaSingh's picture

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.

yaclax's picture

Thank you! Works great!


Copyright 2005 - 2012 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright, license and trademark information.