This was my first serial programming experience on Mac OS X with Java and it was painful. There is no official library for Java for writing/reading from serial interface. Open source libraries available but those depends on OS, and OS architecture and java versions. After required libs installed, I had to get list of all port on my mac using rxtx however, had to deal with with PortInUseException while opening a port. Thanks to this guy; solution is to set up a folder and required permissions at location /var/lock, then everything went very well.
After a few years I returned back to java, it still same java nothing much here 🙂 I can handle it.