[Rxtx] error 0x5 - when disconnect USB

Kustaa Nyholm Kustaa.Nyholm at planmeca.com
Mon Nov 14 13:34:31 MST 2011


On 11/14/11 21:38, "Leucir Marin" <leucir at gmail.com> wrote:

>Hi guys.
>
>I'm running on a problema that was opened discussed on this forum, but
>yet without answers.
>When I'm reading data from Arduino and disconnect the USB cable, the Java
>client (using rxtx) began to throw a LOT of error 0x5 (access denied)
>messages.
>Is there any way to catch that error in Java and treat it? I already
>tried to use event listener, but it seems the outside Java's control.
>
>Maybe one of you can help to address this issue.
>
>Thanks in advance.
>
>- Leucir


Maybe try PureJavaComm:


http://www.sparetimelabs.com/purejavacomm/index.html

at least you have a chance catch pretty much everything in Java then.

br Kusti





More information about the Rxtx mailing list