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.
e-genpartnersAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

e-genpartnersAuthor Commented:
Thanks. but I need a sample source code to detect the status of COM ports.
IS there any good (or simple) example?
0
e-genpartnersAuthor Commented:
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.
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

krakatoaCommented:
The link states that the API can be interrogated for data available on the ports, via an asynchronous event option.


Also, look here : http://mindprod.com/jgloss/serialport.html
0
e-genpartnersAuthor Commented:
Where can I download the javax.comm package?
I cannot find the download link.
0
CEHJCommented:
Is it for Windows? afaik that api is no longer supported
0
e-genpartnersAuthor Commented:
It is for Windows. How about USB detection? Is there any Java API supporting USB detection?
0
krakatoaCommented:
Did you read the Mindprod link I supplied?
0
CEHJCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
e-genpartnersAuthor Commented:
To krakatoa
Yes, I did. but I coulndn't find the sample source code which works properly.
0
krakatoaCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.