inside the /home/ubuntu there is a folder which contains several folders for each one programming language There C , java, python etc Follow this tutorial https://github.com/UDOOboard/serial_libraries_examples/tree/master/java Change the correct version of Arduino IDE and also open the java files with geany and change the name of the serial object from ttymxc3 in ttyS0. Compile and execute without any problems