3. Java API

Step 1. Install the .deb package using the following command:

# apt-get install zio-java-api  # Under Ubuntu/Mint/Debian

Step 2. The CLASSPATH environment variable should point to the serial library and the ZIO API. A possible command sequence is shown below. This can be added to your .bashrc file.

$ export CLASSPATH=.
$ export CLASSPATH=$CLASSPATH:/usr/share/java/RXTXcomm.jar
$ export CLASSPATH=$CLASSPATH:/usr/share/java/zio-java-api.jar

Step 3. Test your installation using the Java program available on the CD-ROM at software/TestZio.class. When executed with the following command, it will prompt for the serial device file and will then test access to the board through the Java API.

$ cd /media/cdrom/software
$ java TestZio
images/test-java.png