BlueCove 库 bluecove 不可用 - 使用 Bluecove/Java 时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5967075/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 13:44:19  来源:igfitidea点击:

BlueCove library bluecove not available - Error using Bluecove/Java

bluetoothjavajsr82bluecove

提问by Ryan Jones

How do I install Bluecove in Ubuntu 11/Eclipse IDE?

如何在 Ubuntu 11/Eclipse IDE 中安装 Bluecove?

As far as i was aware, all I had to do was add the bluecove.jar and bluecove-gpl.jar to the Build-Path of the project within Eclipse.

据我所知,我所要做的就是将 bluecove.jar 和 bluecove-gpl.jar 添加到 Eclipse 中项目的 Build-Path 中。

I'm using some sample Bluecove code found here: http://bluecove.sourceforge.net/bluecove/apidocs/overview-summary.html#DeviceDiscovery

我正在使用一些在这里找到的示例 Bluecove 代码:http://bluecove.sourceforge.net/bluecove/apidocs/overview-summary.html#DeviceDiscovery

When I compile it, I'm getting an error: Native Library bluecove_x64 not available Exception in thread "main" javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available

当我编译它时,我收到一个错误:本地库 bluecove_x64 不可用线程“main”中的异常 javax.bluetooth.BluetoothStateException:BlueCove 库 bluecove 不可用

Obviously, my Bluetooth USB dongle is plugged in when I do this... I definitely have BlueZ protocol stack installed.

显然,当我这样做时,我的蓝牙 USB 加密狗已插入……我肯定安装了 BlueZ 协议栈。

What am I doing wrong? Is Bluecove supported by 64-bit Linux? I've also been trying to get it installed on a CentOS 5.5 machine as well, but with no luck.

我究竟做错了什么?64 位 Linux 是否支持 Bluecove?我也一直试图将它安装在 CentOS 5.5 机器上,但没有成功。

Any help would be greatly appreciated. Thank-you

任何帮助将不胜感激。谢谢

回答by Ryan Jones

I found an solutution to the problem.

我找到了解决问题的方法。

for ubuntu version

对于 ubuntu 版本

sudo apt-get install libbluetooth-dev 

for fedora version

对于 Fedora 版本

yum install bluez-libs-devel

should do the trick

应该做的伎俩

Source: http://bluecove.org/bluecove-gpl/

资料来源:http: //bluecove.org/bluecove-gpl/

Source: http://yasir03.online.fr/?p=267

来源:http: //yasir03.online.fr/?p=267

The package has a differant name in CentOS 5.5... it is

该软件包在 CentOS 5.5 中有一个不同的名称......它是

bluez-libs-devel-3.7-1.1.x86_64  <---64-bit
bluez-libs-devel-3.7-1.1.i386  <---32-bit