I have included the following in my executable jar
Code: Select all
<dependency>
<groupId>net.sf.bluecove</groupId>
<artifactId>bluecove</artifactId>
<version>2.1.0</version>
</dependency>
<!-- bluecove-gpl required to run bluecove on Linux-->
<dependency>
<groupId>net.sf.bluecove</groupId>
<artifactId>bluecove-gpl</artifactId>
<version>2.1.0</version>
</dependency>
<!-- http://mvnrepository.com/artifact/net.sf.bluecove/bluecove-emu -->
<dependency>
<groupId>net.sf.bluecove</groupId>
<artifactId>bluecove-emu</artifactId>
<version>2.1.0</version>
</dependency>Code: Select all
apt-get install libbluetooth-devCode: Select all
pi@raspberrypi:~/workspace/bluetooth-server $ java -jar /tmp/btoothserver-1.0-SNAPSHOT-jar-with- dependencies.jar
Native Library bluecove_arm not available
Exception in thread "main" javax.bluetooth.BluetoothStateException: BlueCove Library bluecove not available
at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries( ...
... javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at com.app.bluetoothserver.App.main(App.java:60)I am running Raspberry Pi 3 with internal bluetooth...
Code: Select all
pi@raspberrypi:~ $ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model name: ARMv7 Processor rev 4 (v7l)
CPU max MHz: 1200.0000
CPU min MHz: 600.0000
pi@raspberrypi:~ $ Thanks in advance...