Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114534 - rxtx doesn't work is installed via emerge. does not install package or native lib drivers correctly
Summary: rxtx doesn't work is installed via emerge. does not install package or native...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 07:19 UTC by Ed Watson
Modified: 2011-07-07 08:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.
Comment 1 Ed Watson 2005-12-05 07:23:10 UTC
*DOESN'T WOR
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 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 .