×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Iran - Tabriz
    Posts
    111

    Warning: Failed to initialize Bluetooth (JSR 82) support

    i cant run any bluetooth app on pc !!! but thats work on real phone , i test Bluetooth Demo on netbeans sampels , it`s work true on real phone but when i run it on netbeans this message shown :
    cant initialize bluetooth
    and this is out put :
    Starting emulator in execution mode
    Running with storage root C:\Users\mahdi\j2mewtk\2.5.2\appdb\DefaultColorPhone
    Warning: Failed to initialize WMA message routing support
    Running with locale: Persian_Iran.1256
    Running in the identified_third_party security domain
    Warning: Failed to initialize Bluetooth (JSR 82) support
    java.io.IOException: JSR082 support is not available.
    at com.sun.kvem.jsr082.impl.bluetooth.BluetoothController.initialize(BluetoothController.java:621)
    at com.sun.kvem.jsr082.bluetooth.LocalDeviceImpl.<init>(LocalDeviceImpl.java:166)
    at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:94)
    at example.bluetooth.demo.BTImageServer.run(BTImageServer.java:114)
    Can't initialize bluetooth: javax.bluetooth.BluetoothStateException: JSR082 support is not available.
    Execution completed.
    3552245 bytecodes executed
    403 thread switches
    1672 classes in the system (including system classes)
    19062 dynamic objects allocated (604832 bytes)
    7 garbage collections (504308 bytes collected)
    Warning: The attempt to finalize unexisting client.
    can any one help me ?
    thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Warning: Failed to initialize Bluetooth (JSR 82) support

    Well Bluetooth demo and the app's those required the real device might not run on the emulator. As you might be aware that using the Bluetooth, Location based app, logically can not work on the emulator and must need to be executed on the real device.

    That's not the surprised behavior of the app on the emulator.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Iran - Tabriz
    Posts
    111

    Re: Warning: Failed to initialize Bluetooth (JSR 82) support

    but there is bluetooth properties on >> properties >> manage emulator >> open prefrence >>Bluetooth/OBEX
    there is friendly name , bluetooth adress , ...
    i write this code to get this variabels
    Code:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    import javax.microedition.midlet.*;
    import javax.bluetooth.*;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.List;
    
    /**
     * @author mahdi
     */
    public class Midlet extends MIDlet {
    
        public void startApp() {
            List list = new List("Bluetooth properties :", List.EXCLUSIVE);
            LocalDevice local = null;
            try {
                local = LocalDevice.getLocalDevice();
            } catch (BluetoothStateException ex) {
                ex.printStackTrace();
            }
            list.append(local.getFriendlyName(), null);
            list.append(local.getBluetoothAddress(), null);
            Display.getDisplay(this).setCurrent(list);
        }
    
        public void pauseApp() {
        }
    
        public void destroyApp(boolean unconditional) {
        }
    }
    it`s work on phone but not work on emulator

Similar Threads

  1. Nokia 5000 - JSR 82 Support ?
    By solanky in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2009-04-13, 23:08
  2. Does the 6102i support JSR-82?
    By scole96 in forum Mobile Java General
    Replies: 5
    Last Post: 2006-12-18, 19:16
  3. Nokia Bluetooth JSR-82 support
    By mobilebt in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-09-29, 16:26
  4. Replies: 0
    Last Post: 2003-07-07, 23:58
  5. does 6600 support JSR 82 - bluetooth API
    By huiben in forum Mobile Java General
    Replies: 2
    Last Post: 2003-06-20, 02:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×