Instruction dated May 2005
- First install java SDK as shown above. Let say your java is in /usr/lib/j2sdk1.4-sun. It depends on your version, and where you install it. I will call it $JAVA
- Get the latext binary for linux from rxtx.org.
untar it, you will see lib-something-parallel.so and lib-something-serial.so.
cp those to $JAVA/jre/lib/i386/
you will also see RXTXcomm.jar
cp that to $JAVA/jre/lib/ext - Get Java Comm from sun (http://java.sun.com/products/javacomm/downloads/index.html)
Download Version 2.0 for Microsoft Windows and Solaris/x86
Get the Solaris x86 version
you will see comm.jar
cp that to $JAVA/jre/lib/ext - echo “Driver=gnu.io.RXTXCommDriver” > $JAVA/jre/lib/javax.comm.properties
- Test out your installation
Go to the untar javacomm directory
inside it, there should be a samples/Simple
javac *.java
See if there is error. If there is no error, installation is finished!
[Source]