I want to get the list of all available serial ports on a linux machine using java 6
Asked
Active
Viewed 1,931 times
2
-
possible duplicate of [How to get list of available serial ports in my pc?](http://stackoverflow.com/questions/4493279/how-to-get-list-of-available-serial-ports-in-my-pc) – jmj Nov 08 '11 at 10:34
-
I have checked that code it is not working on linux – Vamsi Nov 08 '11 at 10:36
-
the statement while (pList.hasMoreElements()) is always false in the code so it is not executing the rest of code – Vamsi Nov 08 '11 at 10:40
2 Answers
1
i have used rxtx on windows which worked well. there is a linux version: http://rxtx.qbang.org/wiki/index.php/Installation_on_Linux

Ray Tayek
- 9,841
- 8
- 50
- 90