Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Bluetooth appli not midlet

843790Nov 20 2007
I am developping a desktop application to connect an application running on a computeur to a cellphone
first off all i just want to make a research of all the devices around
i have a code which works fine if i run it as a midlet
but hat is not what i want to do i need an application and it wont work

here is the code which generate an error
Vector remoteDevices = new Vector();
			LocalDevice local = LocalDevice.getLocalDevice();
			agent = local.getDiscoveryAgent();
			agent.startInquiry(DiscoveryAgent.GIAC,this);
I keep getting this error

at javax.bluetooth.LocalDevice.<init>(LocalDevice.java:66)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:81)

I am on a mac and i did import the following files in my library
js082.jar
If i had blucove.jar which i found online i get this error message
on Mac on Linux and on Window XP

Exception in thread "Thread-0" java.lang.Error: BlueCove not available
at com.intel.bluetooth.BlueCoveImpl.<init>(BlueCoveImpl.java:147)
at com.intel.bluetooth.BlueCoveImpl.<init>(BlueCoveImpl.java:58)
at com.intel.bluetooth.BlueCoveImpl$SingletonHolder.init(BlueCoveImpl.java:124)
at com.intel.bluetooth.BlueCoveImpl$SingletonHolder.access$300(BlueCoveImpl.java:116)
at com.intel.bluetooth.BlueCoveImpl.instance(BlueCoveImpl.java:303)
at javax.bluetooth.LocalDevice.<init>(LocalDevice.java:66)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:81)

All i found online is about midlet
and the method getLocalDevice works fine inside the midlet but not in the application
I dont even have a reall error message
May be it is a stack issue but i don t really understand what is going.
What i am missing here? what did i forget to do or to add tx

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 18 2007
Added on Nov 20 2007
0 comments
122 views