Skip to main content

help with LWUIT and blackberry

4 replies [Last post]
giladyu
Offline
Joined: 2010-08-16
Points: 0

hi guys,
im kinda new to programming for black berry, and will appriciate any help.

i recently downloaded the BB JDE 4.7 and installed it to Netbeans,so now i can use the BB emulator platform.
now, in the little text file that came with LWUIT 1,4 it sais that i only have to use that BB platform and import the BlackBerryPort jar file to my Reasources and libraries instead of the regular Lwuit library and the rest should take care of its own.
but im getting some trouble with that, im getting this weird output:

....
...
bq: Warning!: Duplicate method only differs by return type: a
bq: Warning!: Duplicate method only differs by return type: a
bq: Warning!: Duplicate method only differs by return type: b
Parsing classfile: br.class
br: Warning!: Duplicate method only differs by return type: a
Parsing classfile: bs.class
Parsing classfile: bt.class
Parsing classfile: bu.class
bu: Warning!: Duplicate method only differs by return type: a
bu: Warning!: Duplicate method only differs by return type: a
Parsing classfile: c.class
Parsing classfile: d.class
Parsing classfile: e.class
Parsing classfile: f.class
f: Warning!: Duplicate method only differs by return type: a
f: Warning!: Duplicate method only differs by return type: a
Parsing classfile: g.class
Parsing classfile: h.class
Parsing classfile: i.class
Parsing classfile: j.class
Parsing classfile: k.class
...
..
..
and in the end the Building is failed and with the message

l.class): Error!: Duplicate definition for 'l' found in: l

i would very much appriciate any help about this, thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shankar_vn
Offline
Joined: 2009-11-03
Points: 0

I was able to obfuscate my bb project at full level using Netbeans IDE 6.8(ProGuard 4.4), bb-ant-tools and the latest blackberry port from SVN(not 1.4).

Don't forget to add the below Proguard argument
[code]
-keep public class ** extends net.rim.device.api.ui.UiApplication {
public *;
}
[/code]

psorobka
Offline
Joined: 2009-03-24
Points: 0

Use newer ProGuard - 4.5.1. I had problems with 4.4 when obfuscating for BlackBerry.

daydah
Offline
Joined: 2010-09-20
Points: 0

Hello psorobka,

I know this is an old thread but I need to know: How do I use an external Proguard from within Netbeans? I have Netbeans 6.9.1 and the Proguard that comes with it is version 4.4, but I am getting errors similar to the ones above. I just downloaded version Proguard 4.7 but how to integrate it is my issue.

Please help?

vprise
Offline
Joined: 2003-11-07
Points: 0

Blackberry has issues with obfuscating.