Serial Connection from Java to Arduino | UATS Advanced Programming #01
(1) Do you want your sketches to be written in Java? (2) Or do you want to be able to control the Arduino in real-time using Java? The answer to the second question is yes. You can use the Firmata library (or write your own) to control the Arduino in real-time using communication via the Serial port.