Alexander Busch wrote:
Hi,
having j2re1.3.1 running I am trying to run an app that requires the javax.comm package.
I have taken a look at rxtx, and also downloaded the sparc version of the package, in order to somehow be able to do as described in the install instructions. However, I have to admit, that these instructions are not really clear.
Can anybody help me and tell me what files I need exactely, where to find them, and how to set the classpath correspondingly? Is there any good installation instruction?
I've attached the document we use at work for instructions. Hope this helps.
-- ================================================== Glenn Holmer (Linux registered user #16682) -------------------------------------------------- "You may think this is the finest pearl But it's only cardboard balls, seamed in glue Overwhelming technique; done through diligence" -------------------------------------------------- -Captain Beefheart, "Best Batch Yet" ==================================================Title: Installing Java Comm Drivers
Installing Java Comm Drivers for Linux
- Extract the Solaris version of the comm drivers
(
javacomm20-x86.tar.Z
) to/java
. - Copy
comm.jar
to/usr/lib/java/jre/lib/ext/
. - Copy
javax.comm.properties
to/usr/lib/java/jre/lib
. Change the driver line to readDriver=gnu.io.RXTXCommDriver
. - Extract the low-level "RXTX" drivers (
rxtx-2.0-4.tgz
) to/java
. Make sure you have the version that usesjavax.comm
(notgnu.io
). This refers to the packages that the Javacomm classes appear in, not the low-level driver referred to in the previous step. - Change directory to
/java/rxtx-2.0-4
and build the low-level drivers as root (make sure your system has the standard build tools installed): make sureJAVA_HOME
is set, then run./configure
,make
, andmake install
.
Installing Java Comm Drivers for Windows
- Extract the Windows version of the comm drivers
(
javacomm20-win32.zip
) toC:\java
. - Copy
comm.jar
to<java-install-dir>/jre/lib/ext/
. - Copy
javax.comm.properties
to<java-install-dir>/jre/lib
. - Copy the low-level driver (
win32com.dll
) to<java-install-dir>/bin
.
Because of the locations these files are installed to, there is no need to add the drivers to your classpath.