I have written a simple Java bluetooth server copied from the example here digital hacks blog... Simple spp server...
I have included the following in my executable jar
<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>
I have installed the following library on my pi
apt-get install libbluetooth-dev
When i run my app as follows, i get missing library error
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 L ibrary bluecove not available
at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries( ...
... javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at com.myapp.bluetoothserver.App.main(App.java:60)
Any help much appreciated
Have you found a solution?
RépondreSupprimer