Making SerialPort work with Java