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.