I have copied this code:http://playground.arduino.cc/Interfacing/Java to a java project, and i tried this:
void setup(){
Serial.begin(9600);
while(!Serial);
}
void loop(){
Serial.println("Test");
}
on my arduino UNO, with great results, but when i tried it on my esplora, the program did not even fire the event listener for the java project.