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

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover The Java Developer's Guide to Eclipse.

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

cover JBuilder - There is also a free version of Jbuilder at borland website . However its licence conditions are quite restrictive so you may prefer another java IDE.

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

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