Help! java class for serial comunication

Hi all! i'm triyng to write a java class for serail comunication but i have more problems on port open, in few word my java program have only to read integer from serial and no write. Please anyone can share a working java class or an exemple. i'm on mac and i'm using RxTx library.

This might help http://silveiraneto.net/2009/03/01/arduino-and-java/ There are problems in 64 bit mode on the Mac (Leopard)

Jarimacfed

tanks a lot!