|
|
Classification: |
Java |
Category: |
JavaPhone |
Created: |
09/06/2001 |
Modified: |
04/10/2002 |
Number: |
FAQ-0733 |
Platform: |
Symbian OS v6.0 |
|
Question: I am running the SerialChat Java example application on a Nokia 9200 Communicator series SDK for Java. But every time I try
to initialise an RS232 port or Ir port I get a PortInUseException. What is wrong here?
Answer: The reasons for this are different for the two different kinds of port. In the case of the Ir port, the problem stems from a defect in the javax.comm JavaPhone package which shipped with the Nokia
9210 and corresponding SDK, whereby the wrong name for the Ir port ("IrComm" rather than the correct "IRCOM1") was hard-coded
into the com.symbian.javax.comm.EpocCommDriver class in JavaPhone.jar. The solution is to patch this class with an updated
version. Unzip the attached zip and copy EpocCommDriver.class into the \erj\classes folder on the SDK or \System\Java\classes
folder on the Nokia 9200 communicator. You should find you are then able to initialise the Ir port successfully from the SerialChat
application.In the case of the RS232 port, this is a device-specific issue with the Nokia 9200 Communicator series which is outside Symbian's
control.
|
|
|