添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

dstrower:

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.

Are you running linux on your Laptops or other OS?

dstrower:

I tried running the same java program on the DragonBoard but I get the error message:
ative Library bluecove_aarch64 not available

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 BlueCove - BlueCove Linux D-Bus module .

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 ).