views:

1814

answers:

2

I've been looking around for a Java API that can communicate with Serial on Windows/Win32 but many of the API's I've checked out are either for Linux, too outdated, or just had bad critics.

Can someone recommend one to me that they've tried or knows about that is easy to implement on Windows XP?

+3  A: 

I started looking for the same thing couple weeks ago, and I've been very happy with the multi-platform RXTX library so far. Works with any Windows, Linux and OS X. Has a very clean, easy to understand API.

edit: RXTX is also open source.

Murat Ayfer
Thanks Murat, I'll take a look at it.
Steve
The quality of the RXTX code is quite bad. Be prepared to jump through various hoops if you go down this road.
Gili
it's not bad for most simple things. I'm running into issues on USB comm ports under abnormal circumstances (e.g. USB gets plugged in / unplugged at runtime).
Jason S
+1  A: 

Without reservation, I recommend Java Serial Port from serialio.com; I had significant stability problems with the Sun, IBM and RxTx serial package. SerialPort has been rock solid in production for over 2 years 24/7.

They support the standard Java serial API, as well as their own alternative proprietary one. I would stick with the standard API though, unless you really need something theirs has that the standard one doesn't, just to keep your options open.

Software Monkey
Direct link to SerialPort: http://serialio.com/products/serialport/serialport.php
Mark E