NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

UnsatisfiedLinkError at Beaglebone (Debian) #94

Closed loesler closed 4 years ago

loesler commented 7 years ago

Hi,

up to now, I successfully used the nrjavaserial-library at windows computers. It works fine! Now, I'm try to run the nrjavaserial-library at a beaglebone. The installed Debian system is:

Distributor ID: Debian
Description:    Debian GNU/Linux 8.7 (jessie)
Release:        8.7
Codename:       jessie

and installed Java-version is:

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)

Starting a simple application, I get the following error:

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
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
gnu.io.NoSuchPortException
        at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273)

The native library are copied to the tmp-directory, ie:

drwxr-xr-x 2 debian debian 4096 Apr  4 13:52 libNRJavaSerial_debian_0
drwxr-xr-x 2 debian debian 4096 Apr  4 13:52 libNRJavaSerial_HF_debian_0
drwxr-xr-x 2 debian debian 4096 Apr  4 13:52 libNRJavaSerialv5_debian_0
drwxr-xr-x 2 debian debian 4096 Apr  4 13:52 libNRJavaSerialv6_debian_0
drwxr-xr-x 2 debian debian 4096 Apr  4 13:52 libNRJavaSerialv6_HF_debian_0

Can someone gives me a hint: How to use nrjavaserial at beaglebone? Let me know, If you need further information.

kind regards Micha

madhephaestus commented 4 years ago

This might be fixed as of 5.0.2