J
jack
hi all
have jus tbrought developement kit for java mobile developement.
for sony erricson(p900 model mobile)
Im trying to create my first simple application with the help of the
example in the documentation installed with toolkit.
the code compiles properly but when try to run on the emulator
it gives the below error
'===========================================
Unable to create MIDlet TinyMIDIet
java.lang.ClassNotFoundException: TinyMIDIet
at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
at com.sun.midp.midlet.Selector.run(+22)
'===========================================
below is my code which is just simple one
'===========================================
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class TinyMIDlet
extends MIDlet
implements CommandListener
{
public void startApp()
{
Display display = Display.getDisplay(this);
Form mainForm = new Form("TinyMIDlet");
mainForm.append("Welcome to the world of MIDlets!");
Command exitCommand = new Command("Exit", Command.EXIT, 0);
mainForm.addCommand(exitCommand);
mainForm.setCommandListener(this);
display.setCurrent(mainForm);
}
public void pauseApp () {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
if (c.getCommandType() == Command.EXIT)
notifyDestroyed();
}
}
'===========================================
please do help me in this i have tryed a lot to find out whats wrong in
this code but unable to solve it please do reply as the is my first
application
Awaitng for reply
Thanks for the reply
have jus tbrought developement kit for java mobile developement.
for sony erricson(p900 model mobile)
Im trying to create my first simple application with the help of the
example in the documentation installed with toolkit.
the code compiles properly but when try to run on the emulator
it gives the below error
'===========================================
Unable to create MIDlet TinyMIDIet
java.lang.ClassNotFoundException: TinyMIDIet
at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
at com.sun.midp.midlet.Selector.run(+22)
'===========================================
below is my code which is just simple one
'===========================================
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class TinyMIDlet
extends MIDlet
implements CommandListener
{
public void startApp()
{
Display display = Display.getDisplay(this);
Form mainForm = new Form("TinyMIDlet");
mainForm.append("Welcome to the world of MIDlets!");
Command exitCommand = new Command("Exit", Command.EXIT, 0);
mainForm.addCommand(exitCommand);
mainForm.setCommandListener(this);
display.setCurrent(mainForm);
}
public void pauseApp () {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
if (c.getCommandType() == Command.EXIT)
notifyDestroyed();
}
}
'===========================================
please do help me in this i have tryed a lot to find out whats wrong in
this code but unable to solve it please do reply as the is my first
application
Awaitng for reply
Thanks for the reply