Java rxtx libs

A

Alex Bitkiller

Hi all,

can anybody help me ?
When I run BlackBox sample (from rxtxcommAPI devel) for scan serial
ports, I obtain this result:


root@reaction:~/Desktop/Java/commapi/samples/BlackBox# java BlackBox -p
/dev/ttyS0
Devel Library
=========================================
Native lib Version = RXTX-2.1-7pre12
Java lib Version = RXTX-2.1-7pre12
Caught java.lang.ClassCastException: gnu.io.RXTXCommDriver while loading
driver gnu.io.RXTXCommDriver
Port /dev/ttyS0 not found!
No serial ports found!

What's the trouble ?

Thanx.
 
C

Cedric

Alex Bitkiller wrote
Hi all,

can anybody help me ?
When I run BlackBox sample (from rxtxcommAPI devel) for scan serial
ports, I obtain this result:
Caught java.lang.ClassCastException: gnu.io.RXTXCommDriver while loading
driver gnu.io.RXTXCommDriver

I think you have to be careful in the code. The JAVA communication API
from Sun is using the package javax.comm.* but under Linux/Mac, if you
you use RXTX the package is in gnu.io.* .

JScoobyCed
----------
 
A

Alex Bitkiller

Thanx, now I got it!
Alex Bitkiller wrote



I think you have to be careful in the code. The JAVA communication API
from Sun is using the package javax.comm.* but under Linux/Mac, if you
you use RXTX the package is in gnu.io.* .

JScoobyCed
----------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top