Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Building S60 3rd Edition MIDP Applications using Netbeans 5.5 + Mobility CLDC !HELP!

0 replies · 7,114 views · Started 07 September 2007

[CENTER]My Environment[/CENTER]
[INDENT]Device: Nokia E61
SDK: S60 3.0 MIDP SDK (S60 3rd Ed MIDP)
Java: javac 1.5.0_12
OS: Microsoft Windows XP Professional [Version 5.1.2600]/ Service Pack 2
Computer: AMD Athlon 64bit CPU 3200+ 2.1GHz, 1.00GB Mem
NetBeans (5.5 dev build):
[INDENT]

  • Number: 200704122300
  • Date: ${buildday}
  • Branding:
  • Branch: release551
  • Tag:
[/INDENT]
Mobility: NetBeans Mobility Pack 5.5.1 [/INDENT]
I am having problems building application with netbeans. The jar file is coming out excessively large and it fails to run on the emu, get -10504 error (already checked Symbian OS Error Codes at NewLC and it is not listed there). I inspected the .jar file and did not see anything there that did not belong; only .class, .png, kxml library and manifest files were present (no Thumbs.db or other clutter). Also, the jad files are fine they just have different data in them.

When I build the same application with CarbideJ the jar file size is significantly smaller and it executes on the Emulator. Are any of the CarbideJ tasks, namely <ndsj2mejavac> and/or <ndsj2mepackage>, doing something special to source, jar or images that maybe netbeans is skipping; running a different preverifier, different archiver, using it's on version of javac.exe or something?

When I compile using Carbide.j this is what I get (NO obfuscated/NO debug info);
[INDENT]AppXXX.jad (400 bytes)
AppXXX.jar (728,538 bytes)[/INDENT]

however, when I compile with Netbeans, I get the following(obfuscated set to level 9/NO debug info);
[INDENT]AppXXX.jad (471 bytes)
AppXXX.jar (927,530 bytes)[/INDENT]

The version created with Carbide.j runs in the Emu; however, the NB version does not.

I am attaching my build.xml (as build.xml.txt -- output of netbeans build process is append to the end of the build file in an xml comment, nbprojects/project.properties (as project.properties.txt), CFG_DEV.properties (as CFG_DEV.properties.txt), image of error displayed on the emu as emu_display.gif, image of error message on the popup dialog as error_dialog.gif.

I would be very appreciative if I can quickly get some help!

*Already posted to Nokia forum and no help there 😞 *

Thanks!

Attachments: emu display.gif error dialog.gif CFG_DEV.properties.txt (52 B) project.properties.txt (4 KB) build.xml.txt (43 KB)