emerge rxtx complete sucessfully. blackdown-jdk 1.4.2 or sun-java-jdk 1.5 can't access the rxtx libary either import gnu.io.* or javax.comm.*. (It should access via gnu.io.*) 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 2.reboot 3.javac SimpleRead.java (got from http://java.sun.com/products/javacomm/index.jsp) Actual Results: result from compiled SimpleRead.java:35: package gnu.io does not exist import gnu.io.*; 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(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) 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 www.rxtx.org. ./configure & make & make install. Then is worked fine.
*DOESN'T WOR
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 gnu.io, 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 .