This page is about reading and writing to the serial port using java.
Here are 64-bit binary drives compiled from rxtx 2.0.7 (compiled from code here) to be used with Java Comm api for Linux x86_64.
Put these files in a sutable directory, in my case I put the jars in /usr/java/jdk1.6.0_02/jre/lib/ext and the so files in /usr/java/jdk1.6.0_02/jre/lib/amd64 then make sure your paths are setup to point to these files. In your case adjust to where you have java installed.
Get the comm.jar file from the generic version of Sun's CommAPI release and put it in /usr/java/jdk1.6.0_02/jre/lib/ext.
Create a file called "javax.comm.properties" containing the line: Driver=gnu.io.RXTXCommDriver and put this in your source directory.
Allow access to the lock file edit /etc/group file so that the uucp entry has your name against it like: uucp:x:14:martin
Howtos:
- http://www.geeksville.com/~kevinh/linuxcomm.html
- RXTX - click on howto at top of page
- Sun's CommAPI release - You MUST use the Generic version (the howtos are out of date when they say use the Spark edition).
- for SUSE 11.2 users see this thread
Related Topics
Installing an infrared (IR) device on Linux is explained on this page.