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.
I am looking for Java APIs which support the function.
http://www.oracle.com/tech network/ja va/index-j sp-141752. html
ASKER
Thanks. but I need a sample source code to detect the status of COM ports.
IS there any good (or simple) example?
IS there any good (or simple) example?
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Where can I download the javax.comm package?
I cannot find the download link.
I cannot find the download link.
Is it for Windows? afaik that api is no longer supported
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
To krakatoa
Yes, I did. but I coulndn't find the sample source code which works properly.
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.