Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180378 - dev-java/rxtx missing component
Summary: dev-java/rxtx missing component
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 18:46 UTC by James Horton
Modified: 2007-06-05 21:43 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 James Horton 2007-05-30 18:46:31 UTC
Trying to use dev-java/rxtx in the simpliest form. It emerged OK.
Using a published example from:
http://rxtx.qbang.org/wiki/index.php/Two_way_communcation_with_the_serial_port


and the guide from:
http://www.gentoo.org/doc/en/java.xml

Reproducible: Always

Steps to Reproduce:
1.Using a published example from:
http://rxtx.qbang.org/wiki/index.php/Two_way_communcation_with_the_serial_port

2.follow:
http://www.gentoo.org/doc/en/java.xml

3. This erroneous result:

java TwoWaySerialComm
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
        at TwoWaySerialComm.connect(TwoWaySerialComm.java:20)
        at TwoWaySerialComm.main(TwoWaySerialComm.java:107)



Actual Results:  
java TwoWaySerialComm
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
        at TwoWaySerialComm.connect(TwoWaySerialComm.java:20)
        at TwoWaySerialComm.main(TwoWaySerialComm.java:107)



 I think the Gentoo documetation is not in sync with the new
way Java is set upon Gentoo. I'm fairly new to Java, so 
it could easily be my mistake (not reading between the lines
of the docs).....


James
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-06-05 21:42:58 UTC
Loading native libraries is done like this:
betelgeuse@pena /usr/portage/dev-java/jscience $ echo -Djava.library.path=$(java-config -di rxtx-2)
-Djava.library.path=/usr/lib/rxtx-2

so just call java with that argument and it should work. If not please reopen.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-06-05 21:43:45 UTC
Also feel free to ask for help for issues like this either on the gentoo-java mailing list or the #gentoo-java IRC channel on Freenode.