Malt is a Java library that handles serial communication, it wraps jSerialComm. It can be used to send and receive messages between Java and Arduino (or other microcontrollers).
<dependency>
<groupId>com.harium.malt</groupId>
<artifactId>malt</artifactId>
<version>0.1.0</version>
</dependency>
mvn package -Dmaven.test.skip=true
See: malt-examples
- Install uucp library:
In Fedora:
sudo yum install -y uucp
In Ubuntu:
sudo apt-get install -y uucp
- Add permission to edit /var/lock
sudo chown uucp /var/lock
sudo usermod -aG uucp $USER
sudo nano /etc/group (change uucp:x:#:{username} to uucp:x:#:uucp,{username})
sudo chgrp uucp /var/lock
sudo chmod 775 /var/lock
- Don't forget to logout!