| View previous topic :: View next topic |
| Author |
Message |
adn
Joined: 03 Jul 2007 Posts: 2
Digg It |
Posted: Tue Jul 03, 2007 1:01 pm Post subject: |
|
|
Hi,
first of all, well done for your great work!
I've just a little probleme when i tried to run your example:
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:57)
at WRLImpl.main(WRLImpl.java:41)
Caused by: javax.bluetooth.BluetoothStateException: java.lang.NoClassDefFoundError: com/sun/kvem/jsr082/bluetooth/DiscoveryAgentImpl
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:100)
at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:49)
I was thinking about the javax.blootooth api, so i just installed the wireless toolkit from sun (it uncludes the jsr 82) , but i've this error anyway.
I use a dongle on my laptop, with bluesoleil apps to catch de wiimote signal.
Any idéas?
Thanks
EDIT:
Well i just take a look into the api jsr 082 and actually i've the DisoceryAgent.class but not the DiscoveryAgentImpl :s ?!
Which api is the best one to use with your's?
Thx again. |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Tue Jul 03, 2007 4:38 pm Post subject: |
|
|
Avetana is the best. The Wireless Toolkit from Sun is just the classes (so you can compile). It isn't actually an implementation. In other words, the thing from Sun doesn't actually do anything. Avetana is probably the best solution (you can find them through Google. ). _________________ Cha0s |
|
| Back to top |
|
 |
adn
Joined: 03 Jul 2007 Posts: 2
Digg It |
Posted: Tue Jul 03, 2007 5:30 pm Post subject: |
|
|
Thx for response, i'll see for that one .
A++ |
|
| Back to top |
|
 |
codebudo
Joined: 14 Jul 2007 Posts: 2
Digg It |
Posted: Sat Jul 14, 2007 9:35 pm Post subject: JBlueZ |
|
|
The JBlueZ project tried to create a Bluetooth API for java, but the project eventually died when the company funding it went under. It's really just a JNI wrapper around the Linux BlueZ API, and could probably be completed with just a few weeks solid work.
I worked on JBlueZ for a little while myself fixing bugs and extending it to suit my needs. I've moved on to other things but if anyone wants to pick up where I left off, send me a message and I'll link you to the code. (I don't yet have permissions to post links in posts)
Ideally, this should conform to the sun wireless toolkit interfaces. Anyone up for the task? |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Sat Jul 14, 2007 9:38 pm Post subject: |
|
|
Well, for Linux, avetana is open source. So if someone just compiled that and put up a binary, that'd be great (there've been issues compiling). For Mac OS X, we need to work with Apple's library which I've looked into. I'm not quite ready for that, though. For Windows, I'm talking to something. I think we're going to make an implementation for the WIDCOMM stack, but not promises yet.  _________________ Cha0s |
|
| Back to top |
|
 |
codebudo
Joined: 14 Jul 2007 Posts: 2
Digg It |
Posted: Sun Jul 15, 2007 11:00 pm Post subject: |
|
|
From avetana website:
| Quote: | To register for our free demo license, that can later be extended to an unlimited version, please follow this link.
This demo license is for Windows, Linux und MacOS X and expires after 14 days.
|
Where have you found an open source version of avetana? |
|
| Back to top |
|
 |
Amablue
Joined: 13 Dec 2006 Posts: 95 Location: California
Digg It |
|
| Back to top |
|
 |
|