-
Ensure that the library libLinuxSerialParallel.so can be loaded.
You can do this
either by adding libLinuxSerialParallel.so to the environment
LD_LIBRARY_PATH
or
by copying libLinuxSerialParallel.so to /usr/lib.
Example: Assuming your current working directory is where you extracted
the distribution,
% setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH
or
$ export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
or, if you have administrative privileges on your machine,
% cp libLinuxSerialParallel.so /usr/lib
-
If you are using JDK (not JRE) Add comm.jar to your classpath.
Example: If you don't have a CLASSPATH set currently,
% setenv CLASSPATH `pwd`/comm.jar
or, if you have something in your CLASSPATH already,
% setenv CLASSPATH `pwd`/comm.jar:$CLASSPATH
-
Copy the file javax.comm.properties to your <JDK>/jre/lib
or your <JRE>/lib directory.
If you don't have write permission to <JDK>/jre/lib or
<JRE>/lib,
you can keep
javax.comm.properties in the same directory as comm.jar.
The search order for
javax.comm.properties is:
-
<JRE>/lib
-
the directory that contains the first valid comm.jar that is included
in the classpath.
กก
The javax.comm.properties file must be installed. If it is
not, no ports will be found by the system.
-
You should now be able to run your comm application Example:
% java YourCommAppPkg.YourCommApp
Note: If you are using JDK 1.1.6, include the -native flag.
Example:
% java -native YourCommAppPkg.YourCommApp
-
Several serial port sample applications are provided with this release.
One of them is BlackBox.
To run BlackBox, first add BlackBox.jar to your classpath:
% setenv CLASSPATH BlackBox.jar:$CLASSPATH
then run BlackBox:
% java BlackBox
-
One sample driver NullDriver is included in the samples/NullDriver
directory.
This is useful for folks attempting to write a new driver for their
own hardware.
The javadocs directory contains the API documentation generated by javadoc(1)
from comments
in the source code. To view the HTML files, point your browser at the
main documentation page,
javadocs/index.html.