Java code to connect to raspberry pi using bluetooth - Raspberry Pi Forums


hi,
working on ubuntu debian has kernel version 4.6,i writing code in netbeans 8.1 device discovery giving error during compilation follows:

native library bluecove_arm not available
exception in thread "main" javax.bluetooth.bluetoothstateexception: bluecove library bluecove not available
at com.intel.bluetooth.bluecoveimpl.loadnativelibraries(bluecoveimpl.java:381)
at com.intel.bluetooth.bluecoveimpl.detectstack(bluecoveimpl.java:429)
at com.intel.bluetooth.bluecoveimpl.access$500(bluecoveimpl.java:65)
at com.intel.bluetooth.bluecoveimpl$1.run(bluecoveimpl.java:1020)
at java.security.accesscontroller.doprivileged(native method)
at com.intel.bluetooth.bluecoveimpl.detectstackprivileged(bluecoveimpl.java:1018)
at com.intel.bluetooth.bluecoveimpl.getbluetoothstack(bluecoveimpl.java:1011)
at javax.bluetooth.localdevice.getlocaldeviceinstance(localdevice.java:75)
at javax.bluetooth.localdevice.getlocaldevice(localdevice.java:95)
at javaapplication2.javaapplication2.main(javaapplication2.java:47)
/root/.cache/netbeans/8.1/executor-snippets/run.xml:53: java returned: 1
build failed (total time: 2 seconds)
have 1 temp folder contains 2 folders :bluecove , bluecove-gpl-2.1.0
bluecove folder conatins: bluecove-2.1.0.jar , bluecove-gpl-2.1.0.jar
have set classpath follows: export classpath=bluecove-2.1.0.jar:$classpath , in same way other jar file.
have downloaded library bluetooth as: sudo apt-get install libbluetooth-dev
please me solve problem.

exception in thread "main" javax.bluetooth.bluetoothstateexception: bluecove library bluecove not available
should concentrate on error message. that's root cause.


raspberrypi



Comments