Warning while running a midlet with ktoolkit

well i have been workin on a project on j2me for palm os for a couple of weeks now. The project deals with a lot of recordstore.

however at time i get a warning like " warning :Rsrc 59989 maybe to large.HotSync might fail" and after that the midlet doesnt run on the emulator. however the code seems to comile perfectly well. can anyone help me with that one

thanks

[393 byte] By [robainp] at [2007-9-26 14:26:32]
# 1
you will probably need 2 say what version, OS and also post some code.rob,
Abuse at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

well as far as the PDA is concerned its palm Vx that should mean palm os version is greater than 3.5, i should think and about the ktoolbar i think its the latest one that u can download. well as far as the code is concerned i dont think theres any logical error. what i think is the warning appears whenever u try to deal with a large number of record stores. do u think thats possible ?

thanks

robainp at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Did you find the solution? I have the same problem here.
robertocota at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Hi!!!!

I found the solution!!! (At least for my problem...)

I use JBuilder to write and compile my code.

I use J2ME Wireless ToolKit to build my jar.

The problem is (was): JBuilder create dependecy files and these files are put inside the jar file. One file had more than 64KB (that is the limit size for resource). So I delete the dependency files and everything works great again.

Check if you have some file with more than 64KB inside your jar...

I hope this help you too...

Roberto Cota

robertocota at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

do you expect you program to work on an actualy j2me device If you are reaching the capabilities of the emulator!!!!!!!!!!!!

you will be VERY disappointed, developing for Suns j2mewtk emulator is POINTLESS. I started off doing the same, after developng 4 games for suns emu, I finally got a real j2me device (sl45i) and found most of the work i had done was **** near useless.

j2me is a mess, I recommend all companies involved with j2me, to give it up, and start developing for M$ pocketpc 2002 nextgen phone platform. It will bLoW j2me out of the water.

btw i dont expect this post to be up for very long before it gets removed ;-P

The truth obviously hurts! ALOT!

rob,

Abuse at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

Hi All

please help me

my system config windows 2000, I installed J2me

and jdk1.3.1_02; and Nokio 6310 Emulator.

below my step:

javac -d c:\mynokio\vamsi -bootclasspath c:\Nokia_Dev\Emulators\Nokia_6310i_MIDP_SDK_Beta_0_1\lib SampleMIDlet.java

preverify -classpath c:\Nokia_Dev\Emulators\Nokia_6310i_MIDP_SDK_Beta_0_1\lib; c:\mynokio\vamsi SampleMIDlet

// creating jar fie

jar cfmv Sample.jar Sample.jad c:\mynokio\vamsi\Sample.jad

So far there is no error

When i run Sample.jad file from my nokia development suit. is working fine.

if I add any 'IF', "While', 'For' conditon in my code

Then it will display error'

Please help me:

see my code below;

// Sample.jad file

MIDlet-1: Sample, , SampleMIDlet

MIDlet-Description: A Brief Introduction to MIDP Graphics

MIDlet-Info-URL: http://www.forum.nokia.com

MIDlet-Jar-Size: 9012

MIDlet-Jar-URL: Sample.jar

MIDlet-Name: Sample

MIDlet-Vendor: Forum Nokia

MIDlet-Version: 1.1.0

import javax.microedition.midlet.*;

import javax.microedition.lcdui.*;

public class SampleMIDlet extends MIDlet implements CommandListener

{

private final Command exit = new Command("Exit", Command.EXIT, 1);

private Form introTextScreen;

private Alert introAlert = null;

private Display display;

public SampleMIDlet()

{

}

private void createAlert()

{

introAlert = new Alert("IntroAlert");

introAlert.setString("Testing Alert, window will dismiss in 5 seconds.");

introAlert.setTimeout(5000);

display.setCurrent(introAlert);

}

public void startApp()

{

System.out.println("....................In startApp .......");

display = Display.getDisplay(this);

introTextScreen = new Form("CGE&Y");

introTextScreen.addCommand(exit);

introTextScreen.append(new StringItem(null, "Hello World!"));

display.setCurrent(introTextScreen);

createAlert();

introTextScreen.setCommandListener(this);

pauseApp();

}

public void pauseApp()

{

System.out.println(".............In pauseApp .......");

}

public void destroyApp(boolean unconditional)

{

String stra = "hello";

if(stra.equals("True"))

{

}

System.out.println("....................In destroyApp .....");

}

public void commandAction(Command c, Displayable disp)

{

// problem here conditon. if i remove if condition working fine.

if (c == exit)

{

destroyApp(false);

notifyDestroyed();

}

}

}

//-- error shows --

Initializing class: 'java/lang/System'

Initializing class: 'com/sun/cldc/i18n/Helper'

Initializing class: 'com/nokia/mid/impl/isa/ui/MIDletManager'

Initializing class: 'com/nokia/mid/impl/isa/ui/ImageDatabase'

Loading class 'SampleMIDlet'

Loading version information

Loading constant pool

Loading class info

Class info loaded ok

Loading interfaces

Interfaces loaded ok

Loading fields

Field 'exit' loaded

Loading extra attributes

Extra attributes loaded

Field 'introTextScreen' loaded

Loading extra attributes

Extra attributes loaded

Field 'introAlert' loaded

Loading extra attributes

Extra attributes loaded

Field 'display' loaded

Loading extra attributes

Extra attributes loaded

Fields loaded ok

Error verifying method SampleMIDlet destroyApp(Z)V

Loading methods(6)

Approximate bytecode offset 9: Inconsistent or missing stackmap at target

Method '<init>' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Method 'createAlert' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Method 'startApp' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Method 'pauseApp' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Method 'destroyApp' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Method 'commandAction' loaded

loadMethodAttributes(1)

attr(0,Code)

loadExceptionHandlers(0)

loadExceptionHandlers => 2

loadMethodAttributes ok

Methods loaded ok

Loading extra attributes

Extra attributes loaded

Closing classfile

Creating class: 'SampleMIDlet'

Class loaded ok

Error verifying class SampleMIDlet

tvraju71 at 2007-7-2 16:10:16 > top of Java-index,Java Mobility Forums,Java ME Technologies...