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
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.
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.