To run the TL1 applications over serial port (RS232), you require the
following files. Please read below for details about platform-specific
files.
|
Windows Platform |
|
Download the Windows version of Java Communication API.
Copy win32com.dll
from commapi/ to the
<JDK>/bin or <JRE>/bin
directory.
Copy
comm.jar from commapi/
to the <JDK>/lib or <JRE>/lib
directory. This file is also available
in the <TL1_Home>/jars directory. Also add the comm.jar in the application classpath.
Copy javax.comm.properties
from commapi/ to the <JDK>/lib
or <JRE>/lib directory.
This file must be installed. If it is not installed, no ports will be
found by the system.
This completes the windows
installation. Now you can start testing your serial communication example.
For more details, please refer to http://java.sun.com/products/javacomm/
|
|
Linux Platform |
|
Download the Solaris version of Java Communication API.
Copy comm.jar
from commapi/ to the <JDK>/lib
or <JRE>/lib directory.
This file is also available in the <TL1_Home>/jars
directory. Also add the comm.jar
in the application classpath.
Download and Build RxTx.
Add the RxTx directory to your path as instructed in the RxTx docs.
- Create a file javax.comm.properties
in the <JDK>/lib or <JRE>/lib directory. The file
content must be "Driver=gnu.io.RxTxCommDriver".
If this file is not present, no ports will be found by the system.
- This completes the linux installation. Now you can
start testing your serial communication example.
For more details, please refer to http://geeksville.com/~kevinh/linuxcomm.html
|
|
Solaris Platform |
|
Download the Solaris version of Java Communication API.
Copy the libSolarisSerialParallel.so
file from commapi/ to the /usr/lib/ directory. You can also set
it in the LD_LIBRARY_PATH.
Copy comm.jar
from commapi/ to the <JDK>/lib
or <JRE>/lib directory.
This file is also available in the <TL1_Home>/jars
directory. Also add the comm.jar
in the application classpath.
- Copy javax.comm.properties
file from commapi/ to the <JDK>/lib or <JRE>/lib
directory. This file must be installed. If it is not, no ports
will be found by the system.
- This completes the solaris installation. Now you
can start testing your serial communication example.
|