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/Javahttp://silveiraneto.net/2009/03/01/arduino-and-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:
CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(
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)http://dev.processing.org/source/index.cgi/tags/processing-1.0.3/app/src/processing/app/Preferences.java?rev=5503&view=log
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?