Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bluetooth APIs for Java SE

Tags:

java

bluetooth

I have a Java ME application in my mobile (Client code). I need to write Java SE code (Server-side) so that client-server connection is established through bluetooth. Gonna use obex bluetooth as my need is to transfer a text file from mobile to laptop.

So, for pc side Java SE bluetooth coding, i tried with Bluecove.2.1.1.jar for jsr-82 implementation. But my laptop is win 7 64 bit os and hence i ended up with the error : "bluecove_x64.dll is missing". So, now moving on to AvetanaBluetooth.jar library.

I have downloaded from the Avetana site as a 14-days trial pack. Can anyone please help me on how to implement it? Like, any sample codes or tutorial/ procedure/instructions will be very helpful.

like image 611
Anu Avatar asked Jul 16 '26 14:07

Anu


1 Answers

BlueCove should be sufficient for your server application, but it 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 in Eclipse this under VM Arguments for the launch configuration.

like image 103
pwc Avatar answered Jul 19 '26 03:07

pwc