Having problem witt Bluetooth using Bluecover


I wrote two small java programs and I was able to use Bluetooth to send messages between two laptops. I used a jar file called bluecove.
I tried running the same java program on the DragonBoard but I get the error message:
ative Library bluecove_aarch64 not available
Exception in thread “main” javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available;
resource not found libbluecove_aarch64.so
load [bluecove_aarch64] no bluecove_aarch64 in java.library.path: [/usr/java/packages/lib, /usr/lib/aarch64-linux-gnu/jni, /lib/aarch64-linux-gnu, /usr/lib/aarch64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]

I have jar files bluecove-2.1.1-SNAPSHOT.jar and bluecove-gpl-2.1.0.jar in the classpath.
I have done an install of libbluetooth-dev


Are you running linux on your Laptops or other OS?

How did you install this library ? the library has not been built for ARM architecture…

If you want to use bluecove, I think you will have to buil the lib by yourself, note that it is a old unmaintained library and I don’t know if it’s compatible with the current Linux BT stack [1]. cf http://bluecove.org/bluecove-bluez/.

Depending what you want to achieve there are other existing libs (https://github.com/olir/lbt4j) and you have also several example in the bluez source tree (https://github.com/Vudentz/BlueZ/tree/master/test).


I think you are correct. I am going to try running timyB.jar file and see if I can get that working.