This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Listing/Accesing COM port streams in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Listing/Accesing COM port streams in Java" Watch "Listing/Accesing COM port streams in Java" New topic

Listing/Accesing COM port streams in Java

Binu K Idicula
Ranch Hand

Joined: Jul 11, 2002
Posts: 99
How can Java Program List and access, get the I/O streams of the COM ports of a Computer?
Thanks in advance
Binu K Idicula
Joe Ess

Joined: Oct 29, 2001
Posts: 9137

COM port access is made through the javax.comm api.
The latest version of the comm api does not support Windows, so if you are on that platform your options are listed on our Java IO FAQ.

[How To Ask Questions On JavaRanch]
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

java com api for windows can be downloaded from ...

i apology .

you can use that link to configure com api on your machine .

[ UD: Once again removed link. Do not link to pages that advocate downloading native code from such sites. ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
java com api for windows can be downloaded from ...

No, sorry, downloading native code from an anonymous file sharing site is a huge security risk. That's not what we want to encourage people to do. The implementation can be downloaded from
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Listing/Accesing COM port streams in Java
It's not a secret anymore!