The Strange Problem

Why does not run the simplest MIDLet (HelloMIDLet from Sun One Studio) on Motorola E 398. But it's run on PC (on emulator) and other phones.P.S. sorry for my terrible english if i have some mistakes...
[216 byte] By [dr.MIGa] at [2007-11-26 20:05:53]
# 1
what about the compilation? CLDC 1.0 or 1.1? MIDP 1.0 or 2.0?
suparenoa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
CLDC 1.0 MIDP 1.0
dr.MIGa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Hi i am using J2me wireless tool kit 2.2 with midp 2.0. i need to implement JSR 253 in my project . but when use this API and build my application its saying javax.microedition.telephony does not exsists. which tool kit will support this API. can anybody help me.
hgjhkjla at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
I have "Application Error" when programm started. Can it's because MIDLet is not signed?
dr.MIGa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
> I have "Application Error" when programm started. Can> it's because MIDLet is not signed?have you specified the MIDlet ? can you show use the jad file?
suparenoa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

Please, look this:

import javax.microedition.midlet.*;

import javax.microedition.lcdui.*;

public class sample extends MIDlet implements CommandListener {

private Form frmMain = new Form ("Main Form");

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

private Display display;

public sample()

{

display = Display.getDisplay(this);

}

public void startApp()

{

frmMain.addCommand (cmdExit);

frmMain.setCommandListener(this);

display.setCurrent (frmMain);

}

public void pauseApp() { }

public void destroyApp(boolean unconditional) {}

public void commandAction(Command c, Displayable d)

{

if (c==cmdExit)

{

destroyApp(true);

notifyDestroyed();

}

}

}

I use WTK Version 2.1 to compile project (Settings->Profiles: MIDP 1.0, Configurations: CLDC 1.0 )

I load only *.jar on my Phone and... "Application Error".

BUT Project "games" (from WTK) run without errors (on my Phone).

dr.MIGa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
i'm sorry but a class named "sample" cannot compile: Sample yes but not sample...you see the difference?and i was waiting for the jad file not your MIDlet code!
suparenoa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

jad:

MIDlet-1: sample, sample.png, sample

MIDlet-Jar-Size: 1158

MIDlet-Jar-URL: sample.jar

MIDlet-Name: sample

MIDlet-Vendor: Unknown

MIDlet-Version: 1.0

MicroEdition-Configuration: CLDC-1.0

MicroEdition-Profile: MIDP-1.0

P.S. I did't know about difference between "sample" and "Sample"... Thank you!

dr.MIGa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9
compile all with S (jad and jar and try again (install with the jad)...
suparenoa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 10
Thanks! All problems were because of the lower case of the first letter in class name...
dr.MIGa at 2007-7-9 23:07:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...