I develop an app to interact with my arduino board and i decided to develop JavaFX 2.0 and Android apps also. I decided to use Firmata protocol (http://firmata.org/wiki/Main_Page
), but unfortunately, existing Java implementation (http://www.arduino.cc/playground/Interfacing/Processing
) has hard-coded processing.core.*
So i created fork - plain Java Firmata implementation (almost the same code as original, so it has exactly the same features) with an opportunity to use any Serial implementation with adapter. It has regular Processing serial and RxTx adapters so you can use it with your existing code too.
Now you can use Firmata in your console java apps, Swing apps, JavaFX 2.0 apps and Android.
Check it out - https://github.com/4ntoine/Firmata