itm/wsn-device-utils — Issue #23: UnsatisfiedLinkError because of RXTX libraries
Author: moodgorning
Created: 2011-10-21 10:56:32+00:00
State: open

When starting the DeviceObserverCLI I get the following error:

java.lang.UnsatisfiedLinkError: Native Library /Users/maxpagel/.wsn-device-drivers/librxtxSerial.jnilib already loaded in another classloader thrown while loading gnu.io.RXTXCommDriver

This seems to be connected to a somewhat automatic copying loading of the RXTX libraries from the WSN-device-drivers module. At least the path comes from here:
https://github.com/itm/wsn-device-drivers/blob/master/core/src/main/java/de/uniluebeck/itm/wsn/drivers/core/util/JarUtil.java#L33

Can anyone shed some light into when and where these Libraries are copied loaded reloaded? I just remember the old days where you just had to add -Djava.library.path=... and everything was fine. Aparently something has changed here.