How do I use BlueCove to use Bluetooth on a MacBook with Java?
Asked Answered
S

1

7

I would like to implement an Java application that uses Bluetooth on my MacBook Air laptop. I try to use the Java bluetooth library BlueCove.

I tried to implement the first example DeviceDiscovery but it throws an BluetoothStateException with the message: BlueCove library bluecove not available. I have added bluecove-2.1.0.jar to my Build Path in Eclipse.

What is the problem? How can I use BlueCove with my MacBook Air?

Singsong answered 8/2, 2011 at 21:41 Comment(1)
M
8

BlueCove requires the 32-bit JVM to run. Adding the -d32 argument to java to force the 32-bit JVM will fix the problem. You can do this in Eclipse under VM Arguments for the launch configuration.

Muscadel answered 8/2, 2011 at 23:0 Comment(2)
It's worth noting that this problem will occur under Windows as well. The -d32 trick works there, too.Muscadel
Eclipse says : This Java instance does not support a 32-bit JVMAitchbone

© 2022 - 2024 — McMap. All rights reserved.