When i execute the line of code:
CommPortIdentifier portId1 = CommPortIdentifier.getPortIdentifier("COM4");
I get a NoSuchPortException.
I know that i have a modem attached on COM4.
What can possibly explain this problem? Does it have something to do with a property file, that getPortIdentifier() is looking in? Does it have to do with a driver that is not finding the port?