Re: serial port io
On Tue, Mar 14, 2000 at 04:38:57PM +0000, brad gray wrote:
> does anyone know how to open a serial port in java ?
> i realize that there is a javax.comm package, but no linux port...
> just wondering if anyone has done this before i start learing some
> JPython, etc...
I've done it once. You should use the Java Native Interface (JNI). You
define some routines in C and then you can invoke them when you have
loaded the shared object that contains them. I've done it with the JDK
1.0.2, I know that JNI has changed with JDK 1.1.X but I don't know how.
Try to look the tutorial.
Non c'è più forza nella normalità: c'è solo monotonia.