File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 8707

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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. ]

[My Blog] [ Follow @Twitter] | Innovations never goes out of Style...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39543
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

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: Listing/Accesing COM port streams in Java
Similar Threads
help needed:parallel port in linux
Low level Programing
Server/Client Socket Connection
Error in invoking a servlet from an applet (loaded in a browser)
How Access COM1 port in Java