Hello friends i needed help with J2me programming.
I have this hello world program which runs fine in emulator but when i create jar file and try to run on my mobile i get "Application Error".I use netbeans 6.7 and java ME SDK 3.0 with CLDC 1.1 and MIDP 2.0 and my phone is sony ericsson W700i.Can you guys please help???
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class hello extends MIDlet implements CommandListener{
private Form form;
private Command exit;
public hello(){
form=new Form("Hello world midlet");
form.append("howdy");
exit=new Command("EXIT",Command.EXIT,1);
form.addCommand(exit);
form.setCommandListener(this);
}
public void startApp() {
Display.getDisplay(this).setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command cmd,Displayable displayable)
{
if(cmd==exit)
{
destroyApp(true);
notifyDestroyed();
}
}
}
