Processing example from Arduino website not working with bluetooth

Hi all,

I have an Arduino Uno with a Bluesmirf from Sparkfun. I've been able to get the Arduino to talk to my computer over bluetooth (sending accelerometer values, turning LEDs on and off) with Putty and the Arduino Serial Monitor.

But when I tried to get the bluetooth to work with Processing, it wouldn't work. I followed all of the steps in this link (http://www.arduino.cc/playground/Interfacing/Processing) and tried the example.

import processing.serial.; import cc.arduino.;

Arduino arduino; int ledPin = 13;

void setup() { println(Arduino.list()); arduino = new Arduino(this, Arduino.list()[2], 57600); arduino.pinMode(ledPin, Arduino.OUTPUT); }

void draw() { arduino.digitalWrite(ledPin, Arduino.HIGH); delay(1000); arduino.digitalWrite(ledPin, Arduino.LOW); delay(1000); }

The example worked over the USB cable, but when I switched to bluetooth, it wouldn't work. I know I selected the correct com port when switching to bluetooth, and I updated the Processing RXTX drivers.

Stable Library

Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7

Any idea what could be wrong here?

Thanks, Nate