itm / wsn-device-drivers

Drivers for Wireless Sensor Network Devices
Other
6 stars 4 forks source link

RXTX crashes on 64bit systems #131

Closed danbim closed 10 years ago

danbim commented 11 years ago

See (e.g.) https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/894718

bzld commented 11 years ago

We got it working by using the system (Ubuntu) rxtx library. I'm not sure why that solves the problem. After installing librxtx-java and adding /usr/lib/jni to wrapper.java.library.path in tr.iwsn.conf it worked flawlessly.

psotres commented 11 years ago

It's a matter of wsn-device-drivers RXTX bundled binary files. We have solved it and it's working on an Ubuntu 12.04 x64 system. I will do a commit next week. Nevertheless, we still have some issues and with our current configuration it works with 115200bps but not with 38400bps (an exception it's raised when configuring the por). It could be because we are virtualizing the system but please check.

danbim commented 10 years ago

As a workaround pass environment variable -DdisableEmbeddedRXTX to the JVM when starting the gateway process. This will disable the unpacking of the bundled RXTX JNI libs. In order to make RXTX work without the bundled libs please install librxtx-java on the host OS.