aspose file tools
The moose likes Java Micro Edition and the fly likes BluetoothStateException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "BluetoothStateException" Watch "BluetoothStateException" New topic
Author

BluetoothStateException

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi All,
We want to write a Java SE application which uses bluetooth as well. I am using netbeans 4.1 as the IDE. I added the JSR 82 jar to the application library. I connected a bluetooth dongle (hardware) to the USB port of the PC. I am tring out the following application.

The application compiles perfectly but when I run the program, I get the following RuntimeException: javax.bluetooth.BluetoothStateException: java.lang.NoClassDefFoundError: com/sun/kvem/jsr082/bluetooth/DiscoveryAgentImpl

Any idea what the problem is. Looking forward for a solution.
Thank you.
Regards.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17225
    
    1

JSR 82 is for J2ME only, there is no Bluetooth API available for Java SE, J2SE.

Using the JSR82 API will not work on your PC.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
john kenedi
Greenhorn

Joined: Oct 24, 2002
Posts: 7
Hi,
I have same problem, But it means we can't have a j2se application to discover our BT devices around?
I don't think so, but still now, I get that exception!!!
Isn't there any Idea?
I read in a forum, someone could do this, with a tiny code, I used that code, too, but same problem!!!

thanks in advance...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17225
    
    1

I have not heard of any BlueTooth apis yet for J2SE. But I don't hear everything that might be in the open source or commercial third party arenas.

Mark
 
I agree. Here's the link: jrebel
 
subject: BluetoothStateException
 
Similar Threads
question doubts
Simple Midi Problem
Thread priority
Is there java class to parse xml nodes?
java.io.IOException at out.write()