I’m developing an application for serial communication in Java with RXTX.

Now I’m getting an error:

Port already in use: gnu.io.PortInUseException: Unknown Application

while opening a port, but it seems the port is not used by any other application.

有帮助吗?

解决方案

What OS are you using? How did you confirmed that Port is not used by other application? If on windows, go to Device Manager to see if the driver is installed and Port is enabled to be used by applications. I would say if everything looks good, disable the port and re-enable it.

其他提示

In MS Windows you must reboot system after disabling COM-port and then enable them again (no second reboot needed).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top