Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 435
Jonas Avatar asked Feb 08 '11 21:02

Jonas


1 Answers

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.

like image 160
pwc Avatar answered Oct 26 '22 10:10

pwc