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

843833
I got it. Thanks FarhanM and Kamarainen.
843833
Can someone post the reason / workaround for this problem ? I was using JNDI names in the deploy tool in J2EE 1.3, but I don't find this in J2EE 1.4. Why so ? And how can I specify the JNDI names then ?
843833
Hi, Can you put the solution here?
Cause I got same problem. Thanks
843833
Does anyone know hot to solve this problem?
If so please post solution here.

Thanks in advance.
843833
You need to use File->Deployment Settings and create a new or
edit an existing file. This will bring up additional entries
in your navigation tree window. Selecting them opens up the
way to enter JNDI names.
1 - 5
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
119 views