Please be sure to visit http://www.rxtx.org for full details on serial implementation...the instructions below are only guidelines and should be superceded by any instructions found at the rxtx web site for your particular environment.





1). Check to see if you can run the command java or javac



Note: If you can then you already have a java package installed.
The best thing to do is rename those files so that you know you are using Sun's java and javac. Redhat users will most likely have to do this.


2). Install the JavaSDK from Sun
Filename:  j2sdk-1_4_1_02-linux-i586.bin
Location:  http://java.sun.com/j2se/1.4.1/download.html
Install Notes: http://java.sun.com/j2se/1.4.1/install-linux.html



Notes: Copy the bin file to where you want to install Java and run it. Most systems that is /usr/local



3). Set PATH to java and javac
Command: export PATH=$PATH:/usr/java/j2sdk2.4.1_02/bin



4). Install Sun's comm.jar
Filename: javacomm20-x86.tar.Z
Location: http://java.sun.com/products/javacomm/index.html
Note: You must know the location of comm.jar, configure on RXTX is going to ask you for it.



5). Install RXTX 2.0-5
Filename: rxtx-2.0-5.tar.gz
Location: http://www.frii.com/~jarvi/rxtx/


Installation: tar xzvf rxtx-2.0-5.tar.gz
cd rxtx-2.0-5
./configure
make make install
Notes: This places all the correct files where they need to be inside your Java directory. You do not need any files from javacomm other than comm.jar


6). Set CLASSPATH
Command: export
CLASSPATH=/usr/java/j2sdk2.4.1_02/jre/lib/ext/comm.jar: \
SigPlus2_16.jar:/root/commapi/samples/BlackBox/Blackox.jar



7). Set JAVA_HOME
Command: export JAVA_HOME=/usr/java/j2sdk2.4.1_02


8). Test to see if serial ports are working
Notes: change to your commapi directory, then
samples, and BlackBox. Then compile all the java files (javac *.java) and run
BlackBox (java BlackBox). You should be able to see your device and the data coming into it.

