While doing some development in Java (using RXTX like the Arduino IDE does), I always had errors like this one:
1 2 3 4 5 6
I was puzzled because I could not find any other program using the serial port!
Turns out Google is your friend on this and the error message is very misleading.
The RXTX library requires access to the
/var/lock directory, but it does not exists on a Mac!!!
So you only need to create it properly:
via JGrass Tech Tips