Debian bluetooth bluecove java7 not working

I have a clean installation of compression in Debian and try to run a jar application that will communicate with the bluetooth dongle in the USB port. The hardware all works perfectly. The bluetooth functionality is all here. I need to run Java7, which I installed by downloading from oracle jdk and using upgrade alternatives to connect it to the system.

The Java application requires bluecove as a library to communicate with the system. My bluecove.jar file is in my classpath / home / app / lib. I have gpl as well as a regular snapshot.

When I run the application through java -cp /home/app/lib/bluecove-2.1.1-SNAPSHOT.jar -jar myapp.jar, I get the same error again and again and cannot figure it out. Its like java cannot load bluecove.

Exception in thread "main" javax.bluetooth.BluetoothStateException: BlueCove com.intel.bluetooth.BluetoothStackBlueZ|com.intel.bluetooth.BluetoothStackBlueZDBus not available
        at com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:356)
        at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:447)
        at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
        at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)

Has anyone seen this? thank!

+5
2

https://code.google.com/archive/p/bluecove/downloads

'bluecove-2.1.0.jar' 'bluecove-gpl-2.1.0.jar' . linux bluecove-gpl jar.

-cp

export CLASSPATH=$CLASSPATH:(/your bluecove jar location)
export CLASSPATH=$CLASSPATH:(/your bluecove gpl jar location)
java -jar myapp.jar
+1

All Articles