Topic
  • 7 replies
  • Latest Post - ‏2009-11-03T15:16:52Z by ico83
SystemAdmin
SystemAdmin
9394 Posts

Pinned topic bluetooth and J9

‏2005-03-27T21:52:08Z |
Is there someone who succeeded to use bluetooth with J9 on PocketPC?
I tried to run on J9 the Bluetooth demo from the Sun J2ME Wireless Toolkit but it does not work.

Any idea is welcome.
Regards,
Updated on 2009-11-03T15:16:52Z at 2009-11-03T15:16:52Z by ico83
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2005-07-06T21:56:37Z  
    Yes, I have the same question: does J9 JVM support bluetooth? How to implement the bluetooth function on PDA?
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2005-07-07T16:13:32Z  
    Yes, I have the same question: does J9 JVM support bluetooth? How to implement the bluetooth function on PDA?
    Hi,

    The only Java Bluetooth implementation that I got to work on with the IBM J9 JVM was the Avetana Bluetooth software.

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml

    I have a complete list of Java Bluetooth implementations on my website:

    http://www.javabluetooth.com/development_kits.html

    The installation instructions (which are VERY simple) are for the Creme JVM, but they also work for J9:

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/Readme.xml

    Regards,

    Bruce
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2005-07-07T21:50:10Z  
    Hi,

    The only Java Bluetooth implementation that I got to work on with the IBM J9 JVM was the Avetana Bluetooth software.

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml

    I have a complete list of Java Bluetooth implementations on my website:

    http://www.javabluetooth.com/development_kits.html

    The installation instructions (which are VERY simple) are for the Creme JVM, but they also work for J9:

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/Readme.xml

    Regards,

    Bruce
    Thank you very much, I will try that
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2005-07-09T19:05:03Z  
    Hi,

    The only Java Bluetooth implementation that I got to work on with the IBM J9 JVM was the Avetana Bluetooth software.

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml

    I have a complete list of Java Bluetooth implementations on my website:

    http://www.javabluetooth.com/development_kits.html

    The installation instructions (which are VERY simple) are for the Creme JVM, but they also work for J9:

    http://www.avetana-gmbh.de/avetana-gmbh/produkte/Readme.xml

    Regards,

    Bruce
    Dear Bruce,

    I wanted to use JSR82 on my iPAQ Pocket PC too.
    Therefore I have a Midlet which communicates over
    bluetooth and it works fine on my phone, so it should
    on J9 too...

    But it does not :(
    Even if the installation instructions are "very simple",
    I couldn't get it work.

    What I did so far:
    • placed a copy of BtSdkCE30.dll and BtCoreIf.dll under \Windows
    • put the avetanaBluetooth.jar under \Program
    Files\J9\MIDP20\lib\jclMidp20\ext

    What I can say about it is that the JSR82 classes were definitely found
    with avetanaBluetooth.jar in the \lib\ext directory. I have confirmed
    this by calling successfully
    Class.forName("javax.bluetooth.LocalDevice");

    But when I try to really use one of the JSR82 classes, e.g. by calling
    LocalDevice.getLocalDevice();
    the Midlet terminates/crashes. I have also tried to catch any possible
    Throwable to see what's going wrong, but this didn't prevent the Midlet
    from terminating either:
    try {
    LocalDevice.getLocalDevice();
    } catch (Throwable e) {
    log ("OhOh " + e.getMessage());
    }

    Since the Java classes are definitely there, I assume that the native
    calls do not succeed. I've tried to put the avetanaBTCE.dll,
    libavetanaBT.jnilib and libavetanaBT.so into the J9/MIDP20/bin
    directory, as well as the J9\MIDP20\lib\jclMidp20\ext and \Windows, but
    without success.

    If you got it working with J9, it would be great if you could give a
    more detailed instruction, especially what has to be done besides
    placing the avetanaBluetooth.jar in the J9\MIDP20\lib\jclMidp20\ext
    directory.

    Any help is appreciated!
    Best regards,
    Torben

    bhopkins@apress.com wrote:
    > Hi,
    >
    > The only Java Bluetooth implementation that I got to work on with the IBM J9 JVM was the Avetana Bluetooth software.
    >
    > http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml
    >
    > I have a complete list of Java Bluetooth implementations on my website:
    >
    > http://www.javabluetooth.com/development_kits.html
    >
    > The installation instructions (which are VERY simple) are for the Creme JVM, but they also work for J9:
    >
    > http://www.avetana-gmbh.de/avetana-gmbh/produkte/Readme.xml
    >
    > Regards,
    >
    > Bruce
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2005-07-13T15:43:36Z  
    Dear Bruce,

    I wanted to use JSR82 on my iPAQ Pocket PC too.
    Therefore I have a Midlet which communicates over
    bluetooth and it works fine on my phone, so it should
    on J9 too...

    But it does not :(
    Even if the installation instructions are "very simple",
    I couldn't get it work.

    What I did so far:
    • placed a copy of BtSdkCE30.dll and BtCoreIf.dll under \Windows
    • put the avetanaBluetooth.jar under \Program
    Files\J9\MIDP20\lib\jclMidp20\ext

    What I can say about it is that the JSR82 classes were definitely found
    with avetanaBluetooth.jar in the \lib\ext directory. I have confirmed
    this by calling successfully
    Class.forName("javax.bluetooth.LocalDevice");

    But when I try to really use one of the JSR82 classes, e.g. by calling
    LocalDevice.getLocalDevice();
    the Midlet terminates/crashes. I have also tried to catch any possible
    Throwable to see what's going wrong, but this didn't prevent the Midlet
    from terminating either:
    try {
    LocalDevice.getLocalDevice();
    } catch (Throwable e) {
    log ("OhOh " + e.getMessage());
    }

    Since the Java classes are definitely there, I assume that the native
    calls do not succeed. I've tried to put the avetanaBTCE.dll,
    libavetanaBT.jnilib and libavetanaBT.so into the J9/MIDP20/bin
    directory, as well as the J9\MIDP20\lib\jclMidp20\ext and \Windows, but
    without success.

    If you got it working with J9, it would be great if you could give a
    more detailed instruction, especially what has to be done besides
    placing the avetanaBluetooth.jar in the J9\MIDP20\lib\jclMidp20\ext
    directory.

    Any help is appreciated!
    Best regards,
    Torben

    bhopkins@apress.com wrote:
    > Hi,
    >
    > The only Java Bluetooth implementation that I got to work on with the IBM J9 JVM was the Avetana Bluetooth software.
    >
    > http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml
    >
    > I have a complete list of Java Bluetooth implementations on my website:
    >
    > http://www.javabluetooth.com/development_kits.html
    >
    > The installation instructions (which are VERY simple) are for the Creme JVM, but they also work for J9:
    >
    > http://www.avetana-gmbh.de/avetana-gmbh/produkte/Readme.xml
    >
    > Regards,
    >
    > Bruce
    Ok,

    Here's the command to get the example program up and running:

    "\Program Files\J9\PPRO10\bin\j9.exe" "-classpath" "\Storage Card\Java\ave\avetanaBluetooth.jar" "-jcl:ppro10" "de.avetana.bluetooth.test.PocketTest"
    You can either execute that command at the command line (if you have the DOS utility) or if you can copy/paste it onto a lnk file. There are two things to remember:

    1. Yes, you do need the double quotes (")
    2. Don't run the command as-is. Swap out the location to your avetanaBluetooth.jar location.

    Thanks,

    Bruce
    http://www.javabluetooth.com
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: bluetooth and J9

    ‏2008-05-27T19:43:24Z  
    Hi,

    I'm currently evaluating J9 for use on WM6 Smartphones (e.g. Moto Q 9). It doesn't look like there is Bluetooth support for these devices through J9. Is this correct?

    Cameron
  • ico83
    ico83
    1 Post

    Re: bluetooth and J9

    ‏2009-11-03T15:16:52Z  
    Hi experts,

    can somebody tell me if meanwhile j9 supports Bluetooth?

    Thanks!