I'm brand new to XBee API programming and I have no clue where to
start. I followed the steps on
http://code.google.com/p/xbee-api/wiki/Processing
exactly, but when I try to run the code I get
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError:
org/apache/log4j/Logger
at com.rapplogic.xbee.api.XBee.<clinit>(XBee.java:42)
at sketch_feb18a.setup(sketch_feb18a.java:46)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 5 more
I have no clue what's going on and would greatly appreciate any help.
Also, seeing as I need to know this eventually, how should I export
the code to the XBee; I couldn't really find any documentation or
procedures for this.