There's a few guides out there that describe how to interface the arduino with a PC and Java.
http://www.arduino.cc/playground/Interfacing/Java
In both of their tutorials, they use Processing's app.Preferences to sniff the device that the PC sees the arduino as. Their code runs along the lines of:
Preferences.init();
CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(
Preferences.get("serial.port"));
This works fine and dandy up until 0017, which upgraded to Processing 1.0.3
Since the last time arduino updated its Processing library, the Preferences class has since changed init's method signature to:
static protected void init(String cmdlineargs)
And thus causing an interesting dilemma. The quick hack to get around this signature change would be to first make the class trying to implement this functionality to extend processing.app.Preferences, and to simply pass a String to init.
Unfortunately, this does not solve the problem as Preferences starts throwing more NullPointerExceptions, probably related to my subclassing of Preferences.
Has anyone successfully interfaced with Java with 0017?