How do I get serial communication to work with jRxTx or RXTX?

Many of our software components depend on the Java library RXTX (Copyright 1997-2004 by Trent Jarvi) for accessing the serial port (UART).  Currently we are moving our projects to jRxTx which is a wrapper of RXTX written by us. jRxTx has many advantages over RXTX such an improved API, OSGi capability, hosting on maven central etc.

In addition to the new API jRxTx provides the legacy RXTX API as well. So even if you use one of our libraries that still depend on RXTX you can use jRxTx with them. Checkout the README on github for instructions on how to set up jRxTx on your system.