Hi Christoph,
The jar File provided by Sun is ONLY a specification and not the implementation of this specification!
That's why most of the methods throw a RuntimeException!
Bluetooth require some system-specific drivers (drivers are provided by Mac OS X. Under linux, the BlueZ stack is the official stack).
If you want to use the JSR82 specification you must therefore look for an implementation that uses your system-stack.
If you want a stable and efficient implementation of JSR82, I suggest you to have a look at
http://www.avetana-gmbh.de/avetana-gmbh/jsr82.xml Only the linux version is free. Otherwise, you will have to purchase a license.
Julien
Originally posted by Christoph Ehret:
Hi,
I have to write an application that runs on OS X (and if possible on any other plateform) with Bluetooth and that should communicate to any bluetooth mobile a kind of menu where you can do some actions (something like Sallingclicker or Romeo for those who know). So I found the Bluetooth API JSR82; ok, nice, it is even a final release. I only found the sources, is this normal ? No package ? I compile the example PrintClient without problem, but it I try to run the application, I have the following error :
Exception in thread "main" java.lang.RuntimeException: Not Implemented! Used to compile Code
So I have a look at the sources in javax.bluetooth and oohhh surprise almost every method throws the following exception when used throw new RuntimeException("Not Implemented! Used to compile Code"); .
But in the other code examples I found on Benhui.Net or on Sun website, they nerver speak of such a thing.
So how can I test the application ? Have I downloaded the wrong thing ? What have I to do, because actually I am really stucked .
Thanks for your explanations and help.
Chris