Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Is it possible to use BlueCove for Mac OS 10.10 Yosemite?

588 views
Skip to first unread message

Michael Wasko

unread,
Jan 27, 2015, 1:51:54 PM1/27/15
to bluecov...@googlegroups.com
Hi all,

I was just wondering if it was possible to do this.

I am curious because the change log on BlueCove's website hasn't been updated in a long time (since 2009).

If anyone can simply confirm if any version works with Mac OS 10.10, that would be swell.

Much appreciated,
Michael

Haochen Xie

unread,
Feb 14, 2015, 11:56:05 PM2/14/15
to bluecov...@googlegroups.com
Also curious about it since I'm trying to use this library on a MacBook. When poking around, the library give me an exception when I try the following code:

        LocalDevice localDevice = LocalDevice.getLocalDevice();

and the exception was 

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:434)
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 com.example.playground.bluetooth.TryBluetoothApi.tryDiscovery(TryBluetoothApi.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

So I guess the support for Mac no longer holds for newer OS X versions.

Haochen

Haochen Xie

unread,
Feb 15, 2015, 12:09:33 AM2/15/15
to bluecov...@googlegroups.com
I tried to find out the root cause of the Exception, and found out that the Mac OS X native library doesn't support 64bit system. `file libbluecove.jnilib` outputs:

        libbluecove.jnilib: Mach-O universal binary with 2 architectures
        libbluecove.jnilib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
        libbluecove.jnilib (for architecture i386): Mach-O dynamically linked shared library i386

So I guess to recompile the native library for 64bit may solve the problem.

Haochen

On Wednesday, January 28, 2015 at 3:51:54 AM UTC+9, Michael Wasko wrote:

Daniel Lynch

unread,
Mar 6, 2015, 2:55:06 AM3/6/15
to bluecov...@googlegroups.com
When I did this, I found that the bluetooth framework for OS X had changed since 2008, and you had to install an old version of IOBluetooth.framework. This borked my system and I had to reinstall. It might not be possible to use Java to write a bluetooth application on OS X. Time to learn Objective-C?
Reply all
Reply to author
Forward
0 new messages