Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RS232 + RXTX + javax.comm + Mac

807607Oct 19 2006 — edited Oct 20 2006
First of all, what would be the correct topic for a RS232 question? Nothing seems relevant.

So I need to do some RS232 / Serial programming on my Mac (OSX.4.8). It seems that Sun only provides serial port drivers for Linux and Solaris, so I have to look elsewhere for my Mac.

I've found a package called RXTX (http://rxtx.org) that looks like it will work. They provide a driver as well as an implementation of javax.comm. Actually, it appears they used to provide an implementation with the same exact name (javax.comm) but Sun got upset and they had to change the name to gnu.io.

So here's my situation ... I'd like to be as standard as possible, so I'd like to use the Sun provided javax.comm packages, which they provide generically without a driver. So I'm trying to figure out how to use the Sun packages with the RXTX driver.

There is a Sun config file called javax.comm.properties where you can provide the class of the driver, but I'm not sure what this is. What would be the name of the RXTX driver? How could this be found?

I'm up to any other suggestions to get this going as well. Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2006
Added on Oct 19 2006
11 comments
2,059 views