I am developing a Java application that uses a serial port to communicate. The communication part is working fine but if I close the serialport using the close method on the SerialPort object and then try to open it again using the open method on a CommPortIdentifier object I get a runtime exception saying "Device busy". If I restart the application the port is opened without problems.
Should I do something else besides calling close on the SerialPort object before trying to open it again?
My platform is Sparc Solaris 10 and I'm using Sun's Commapi.
Thanks in advance,