Bluetooth API for Java SE

I have a Java ME application in a mobile phone (client code). I need to write Java SE code (server side) so that the connection with the client and server is established via Bluetooth. I'm going to use bluetooth obex, since I need to transfer a text file from mobile to laptop.

So, for bluetooth encoding on Java side in pc language, I tried to use Bluecove.2.1.1.jar to implement jsr-82. But my laptop won 7 64-bit os, and therefore I ended up with the error: "bluecove_x64.dll is missing." So, let's move on to the AvetanaBluetooth.jar library.

I downloaded a 14-day trial package from Avetana. Can someone help me on how to implement it? For example, any code examples or manuals / procedures / instructions will be very helpful.

+3
source share
2 answers

BlueCove should be sufficient for your server application, but it requires a 32-bit JVM to run it. Adding an argument -d32to javato make the 32-bit JVM fix the problem. You can do this in Eclipse under the "VM Arguments" section for launch configuration.

+3
source

I think pwc already answered this question here

So, Bluecove is good if you do not want to spend money on another library :)

+2
source

Source: https://habr.com/ru/post/1791717/


All Articles