There are a few examples showing how to implement a serial connection in java using the Processing libraries to talk to the arduino.http://www.arduino.cc/playground/Interfacing/Javahttp://silveiraneto.net/2009/03/01/arduino-and-java/
But, it seems that Preferences.init() has been changed for 0017. I did find a work around. (See: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1251256638
I added the PrefsHack class as instructed, but as magitek described in that post I too get a bunch of NullPointerExceptions.
Exception in thread "main" java.lang.NullPointerException
Java Result: 1
Anyone know how to get around this? Is there any documentation for the Processing libraries?