简单的蓝牙服务器Raspberry Pi 3(Linux) - 库错误

时间:2016-06-17 23:43:13

标签: java bluetooth raspberry-pi raspberry-pi3 bluecove

我写了一个简单的Java蓝牙服务器,从这里的例子中复制digital hacks blog ...简单的spp服务器......

我已将以下内容包含在我的可执行文件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>

我在pi上安装了以下库

apt-get install libbluetooth-dev

当我按如下方式运行我的应用程序时,我错过了库错误

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)

任何帮助非常感谢

0 个答案:

没有答案