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
tiewknvc9 - 02 Dec 2005 22:24 GMT
You may need to install the java virtual machine onto the device.
Sun.com should have one listed close to the MIDP library.
jack - 03 Dec 2005 05:21 GMT
Thanks for reply
i have already installed this . any way if i want to check this
whethere this is already installed in this pc how should i check it
im not a java programmer working in vb6 language .. but know just
little bit of java .. have learned long time back
Thanks once again
Needed help
Chris Smith - 03 Dec 2005 05:30 GMT
> the code compiles properly but when try to run on the emulator
> it gives the below error
[quoted text clipped - 4 lines]
> at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
> at com.sun.midp.midlet.Selector.run(+22)
The emulator needs to be run differently. How are you launching it now:
from within a tool, or from the command line? What else can you tell
us, particularly about the classpath if you've come across that term?

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
jack - 03 Dec 2005 16:30 GMT
i have ide for developement