SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By samuele
#172675
Hello everyone! I'm new here (and my english isn't good...).
I have a problem with Xbee library. I have found a processing program into the book "Building wireless sensor networks" by Robert Faludi. I followed indications contained into the program comments which suggest to create a folder with xbee-api-0.9.jar and log4j.jar files into the folder containing the program (.pde). In the program there is this instruction:
Code: Select all
String mySerialPort = "/dev/tty.usbserial-a1000img";
and then:
Code: Select all
xbee.open(mySerialPort, 9600);
When I run the program appear this:

NoClassDefFoundError: gnu/io/SerialPortEventListener
Available serial ports: COM1 COM11 COM12 COM13


Actually my Xbee module is connected to COM1.
I've already tried to change the string "/dev/tty.usbserial-a1000img" with "COM1" but with no results.

Thanks in advance for your attention!

PS: I'm using Processing 2.2.1 (64 bit) on Windows 7 (64 bit).