Jach00
Posts: 2
Joined: Sun Apr 24, 2016 12:48 pm

Problem with gnu.io.RXTXCommDriver

Tue Jul 11, 2017 11:34 am

Hello,
I have raspberry pi3 with raspbian and java 8 jdk installed.

I have program which uses https://github.com/NeuronRobotics/nrjavaserial . It works perfectly on Windows, but when i tried to run it on raspberry I got:

Code: Select all

java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; 
thrown while loading gnu.io.RXTXCommDriver
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
I installed rxtx by

Code: Select all

sudo apt-get install librxtx-java
like it was shown here: viewtopic.php?f=81&t=69414

App is started by this command:

Code: Select all

java -Djava.library.path=/usr/lib/jni -cp /usr/share/java/RXTXcomm.jar:. -jar appName.jar

nadgetastic
Posts: 9
Joined: Mon May 25, 2015 9:17 pm

Re: Problem with gnu.io.RXTXCommDriver

Fri Sep 15, 2017 5:56 pm

Don't use the RxTx library, it's outdated, unsupported and problematic to install.
Use http://fazecast.github.io/jSerialComm/ - same features without all the hassle of manually installing native binaries

Return to “Java”

Who is online

Users browsing this forum: No registered users and 4 guests