2 Replies - 1728 Views - Last Post: 05 August 2010 - 12:10 PM Rate Topic: -----

#1 kiths  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 15-June 10

List serial com ports of a computer

Posted 05 August 2010 - 11:53 AM

Hello,

In the device manager you can view how many serial com ports are there for that computer.
Is there a way to list serial com ports of a computer using java ?

Could someone suggest a way to do this.

Thanks,
K
Is This A Good Question/Topic? 0
  • +

Replies To: List serial com ports of a computer

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10805
  • View blog
  • Posts: 40,278
  • Joined: 27-December 08

Re: List serial com ports of a computer

Posted 05 August 2010 - 11:58 AM

The Java Communications API looks like your best bet.
Was This Post Helpful? 0
  • +
  • -

#3 guido-granobles  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 171
  • View blog
  • Posts: 617
  • Joined: 02-December 09

Re: List serial com ports of a computer

Posted 05 August 2010 - 12:10 PM

yes, using Java Communications API calling static method getPortIdentifiers in CommPortIdentifier.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1