Skip to main content

compiling jsr82?

5 replies [Last post]
Joined: 2007-01-31

build system: winXP target:win32_i386
I have compiled MIDP by default makefile.That's OK. Then I modified Options.gmk. Set USE_JSR_82 = true
JSR_82_DIR = d:/jwc/jsr82

I recompiled and got some error.
by the way, I compiled MR2. But there is not jsr82 in MR2 source bundle.So I use jsr82 in MR1. I also tried other jsr and got errors too.
... compiling 532 .java files and 6 generated .java files
d:/jwc/jsr82/src/protocol/btl2cap/classes/com/sun/midp/io/j2me/btl2cap/L2CAPNoti incompatible types
found : int
required: java.lang.String
String suiteId = (suite != null) ? suite.getID() : null;
d:/jwc/jsr82/src/protocol/btspp/classes/com/sun/midp/io/j2me/btspp/BTSPPNotifier pushCheckout(java.lang.String,java.lang.String) in com.sun.midp.i
o.j2me.btspp.BTSPPNotifierImpl cannot be applied to (java.lang.String,int)
if (suite != null && pushCheckout(connUrl, suite.getID())) {
d:/jwc/output/midp/generated/classes/com/sun/midp/jsr/ ca
nnot resolve symbol
symbol : class Initializer
location: package jsr082
3 errors
make.exe[1]: *** [d:/jwc/output/midp/] Error 1
make.exe[1]: Leaving directory `d:/jwc/midp/build/win32'
d:\cyg4me\bin\make.exe: *** [build_classes] Error 2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-05

I just wanted to verify that I've got jsr82 from MR1 working on MR2 (b08) after a couple of slight tweaks. If it's of interest to anyone... On Linux/ARM that is, with BlueZ.

Joined: 2005-09-22

Hi hallenberg ,
I'm trying use jsr82 with bluez on linux . After modifying some make files and cpp files i was able to use native Bluez library. But seems code is not working properly. I can get the bt address properly but if start for device inquiry or try to get local name it does not work.
Got any idea ?


Joined: 2007-01-05

I haven't tried doing that, as far as I know. Why would you want the local name anyhow? Unless you mean the friendly name of remote devices. Scanning for devices and connecting to them works just fine (at least over RFCOMM). I've used a Bluetooth GPS to supply data to a navigation client.

Joined: 2006-10-18


Unfortunately that's the way it is. In MR2 MIDP component was refactored a bit including type change for suite IDs in AMS (the cause of the error you have in your log) so you most probably will have no possibility to mix together components from different releases

I suggest you either take only MR1 code or wait till MR2 release including JSRs you need


Joined: 2007-01-31

thank you.
I recompiled MR1 jsr82 on windows for win32_i386.
but I got a error.
d:\jwc\jsr82\src\core\native\common\btCommon.h(38) : fatal error C1083: Cannot o
pen include file: 'stdint.h': No such file or directory

I searched MR1 source code. The file 'stdint.h' does not exist. Where I can find this file?