BrickPi Java Exception LoggerFactory


#1

Hi,
I have brickPi-1.0-SNAPSHOT.jar in the libraries of my project file and I am trying to run BrickPiTest.java. Why this exception is shown:
“Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at com.ergotech.brickpi.BrickPiCommunications.(BrickPiCommunications.java:38)
at com.ergotech.brickpi.BrickPiTests.main(BrickPiTests.java:36)
Caused by: 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)
… 2 more
/home/pi/.cache/netbeans/8.2/executor-snippets/run.xml:53: Java returned: 1
BUILD FAILED (total time: 2 seconds)”


#2

Are you using a BrickPi+ or BrickPi3?