What you are trying to do seems logical.
Even the JavaComm docs read:

<<
public boolean isCurrentlyOwned()

Checks whether the port is owned.

Returns:
boolean true if the port is owned by some application, false if the
port is not owned.
>>

Let me ask the obvious: are you sure that JavaComm is installed
properly?

P.S.
JavaComm (or RxTx) is always needed in com operations.

On Mar 13, 6:36 pm, Mayur <[email protected]> wrote:
> The CommTest.java file provides a way to detect whether ports are
> available or not and if they are then what baud rates are supported by
> them.
>
> Can we implement faster logic to detect whether the port is in use or
> not?
> Can we do it with SMSLib or do we need Comm API?
>
> CommPortIdentifier cm=CommPortIdentifer.getCommPortIdentifier("COM1"):
>
> cm.isCurrentlyOwned() always returns false though I am using same port
> on hyperTerminal.
>
> What is the problem?

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to