• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.comm no longer supports Windows?  RSS feed

 
Mike Winters
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the last two hours or so, I have been trying to figure out how to communicate with the serial port in Java. I have come acrosss numerous articles and threads (both here and elsewhere) saying that javax.comm is the way to go. Unfortunately, the Sun website, Java Comm API 3.1 does not list a download link for any Win* system. After a good deal of searching, I was able to find a reference to an article (which I can't access) on the Sun website saying that javax.comm no longer supports Windows.

I have two main questions. The first: is this true (Windows is no longer supported)? If not, am I just an idiot and have spent the last two hours clicking in circles? Where is the actual download location? Where is this library?

The second: If it is true, how can I communicate with the serial port in Windows, and yet still be able to compile the same code on another system (specifically Linux, but Mac compatibility would also be nice)? What library will I need, and where can I find it?

Thanks,

Mike
[ December 28, 2005: Message edited by: Mike Winters ]
 
Paul Clapham
Sheriff
Posts: 22813
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a thread on the Sun forum that contains what I would say is an official explanation:

http://forum.java.sun.com/thread.jspa?forumID=31&threadID=684314

You'll notice that it contains suggestions for alternate sources.
 
Mike Winters
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Now that I have Sun to blame for this headache, would you (or anyone else knowledgeable in this area) be able to assist me in getting the RXTX libraries installed? I have downloaded the win32 binaries (ver 2.1), and have placed the .jar in C:\Program Files\Java\jre1.5.0_04\lib and the .dlls in C:\Program Files\Java\jre1.5.0_04\bin. I also made sure this path was included in my Eclipse preferences, but without success. Importing gnu.io fails (gnu cannot be resolved). I have tried everything I can think of based on the limited information I have been able to find, without success.

I'm relatively new to Java, so please forgive me if I am overlooking something that should be obvious.

Thanks,

Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!