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]

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