Java comm api

This page is about reading and writing to the serial port using java.

paper tape reader

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:

Related Topics

Installing an infrared (IR) device on Linux is explained on this page.

 


metadata block
see also:

 

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.