Link to home
Start Free TrialLog in
Avatar of e-genpartners
e-genpartners

asked on

JAVA APIs to get information on the serial port connection for devices in Windows.

I am developing a Java application for the serial port communication. I want to detect the device port connection with the Java APIs. When users plugin the device USB socket to a port(i.e. USB slot), this Java program can detect and inform users the status.

I am looking for Java APIs which support the function.
Avatar of krakatoa
krakatoa
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of e-genpartners
e-genpartners

ASKER

Thanks. but I need a sample source code to detect the status of COM ports.
IS there any good (or simple) example?
In another word:
How to find the Active COM ports which are there in the System. i am developing a Swings based application where i need to display a list box which shows all the active COM ports in the System dynamically.
SOLUTION
Avatar of krakatoa
krakatoa
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Where can I download the javax.comm package?
I cannot find the download link.
Is it for Windows? afaik that api is no longer supported
It is for Windows. How about USB detection? Is there any Java API supporting USB detection?
Did you read the Mindprod link I supplied?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To krakatoa
Yes, I did. but I coulndn't find the sample source code which works properly.
In that case maybe you'd have to take the long way 'round, and go through JNI. Perhaps CEHJ will pronounce on that one too.