On Linux Mint 14 (based on Ubuntu 12.10), here is how I configured Eclipse so that I can access PC's serial ports:
- install package librxtx-java (version 2.2pre2-11)
- in Eclipse, for concerned project:
- create folder lib at the root of the project
- copy files /usr/share/java/RXTXcomm-2.2pre2.jar and /usr/lib/jni/librxtxSerial-2.2pre1.so into it
- create links to these two files, without version numbers (RXTXcomm.jar and librxtxSerial.so)
- add RXTXcomm.jar to the project build path, as an external JAR