0

Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.1-7 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:269)

The above exception is coming while executing the below code, where portName is "COM1":

CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(portName);

Please help me to fix the problem.

Chris Mantle
  • 6,595
  • 3
  • 34
  • 48
user3702118
  • 11
  • 1
  • 2

1 Answers1

0

From the RXTX NoSuchPortException source: "The requested Port does not exist"

This also seems to happen if RXTX is not correctly installed. See HERE

Community
  • 1
  • 1
Dawnkeeper
  • 2,844
  • 1
  • 25
  • 41