Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114534

Summary: rxtx doesn't work is installed via emerge. does not install package or native lib drivers correctly
Product: Gentoo Linux Reporter: Ed Watson <edmundwatson>
Component: [OLD] DevelopmentAssignee: Java team <java>
Severity: major    
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---

Description Ed Watson 2005-12-05 07:19:34 UTC
emerge rxtx complete sucessfully.
blackdown-jdk 1.4.2 or sun-java-jdk 1.5 can't access the rxtx libary either
import* or javax.comm.*.
(It should access via*)
when copying the package in to the correct place $JAVA_HOME/lib/ext or something
similar the program compiles however doesn't load the native Driver.

Reproducible: Always
Steps to Reproduce:
1.emerge rxtx
3.javac (got from

Actual Results:  
result from compiled package does not exist

result from compiled file having package in the CLASSPATH

Exception in thread "main" java.lang.UnsupportedClassVersionError: SimpleRead
(Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(

Expected Results:  
For the Compile no result

For running a compile class:

Experimental:  JNI_OnLoad called.
Devel Library
Native lib Version = RXTX-2.1-7pre20
Java lib Version   = RXTX-2.1-7pre20
Found port: /dev/ttyS0

To Correctly Install it so that it work the only method i found was to download
the CVS source from ./configure & make & make install. Then is
worked fine.
Comment 1 Ed Watson 2005-12-05 07:23:10 UTC
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-12-05 09:21:56 UTC
A few things:
* Please supply the output of 'emerge info' as is requested when filing a bug.
* Also, what JDK are you using for a system VM? The exception you are getting
suggests that some classes were compiled for 1.5, and that you were trying to
use them with 1.4.
* As for not being able to find the package, this would be expected if
you don't include rxtx's jars on the classpath... You can the classpath you
should need by running: java-config --classpath rxtx-2 .