How do I send data from Eclipse(Java) to the Ardui


How can I interface Arduino and Java with eclipse? I am completely lost. I want to be able to send data from eclipse to the arduino board. I am using java to program. Please help.

Thank you. :o

What exactly is your problem?

  • Creating an Eclipse-Plugin or
  • Communication between JAVA and Arduino

I never developed an Eclipse-Plugin. Maybe you should go through some tutorials. Have a look here:

Communication between JAVA and Arduino is quite easy. Copy all dll file from your arduino folder into your java project folder. You also need the jars: mrj.jar, registry.jar and RXTXcomm.jar in your classpath.

Here an example java code for reading and sending:

        CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(

        SerialPort port = (SerialPort)"serial madness", 4000);
        input = port.getInputStream();
        output = port.getOutputStream();

            while (true) {
                while (input.available() > 0) {                    
                    byte[] bytes = new byte[1];
                    bytes[0] = (byte) (;
                    String s = new String(bytes, "ASCII");
                 byte[] bytes = "TEST".getBytes("ASCII");
            } catch (Exception ex) {