Unable to identify the ports available in my system
posted 4 years ago
Thanks John Jai for your reply. I hope there is not ports available in my system.
John Jai wrote:Welcome to Javaranch, Ethiraj.
Not sure on the problem, but when I execute the below code I get 4 ports COM1, COM2, LPT1 and LPT2 in my desktop. Try it and let us know if you still don't get any output.