Im very new to "LWUIT" for "J2ME". I installed eclipse pulsar in my system.I also installed sony ericsson j2me sdk. The normal j2me is works fine.
When I use lwuit in my j2me project. Then it will not working.
I'm creating new project namely "lwuit2" in my eclipse pulsar.
Then I select my project from project or package explorer, then right clickt
Then I click libraries tab, then I click add external jar button,
then I choose the lwuit path where I store the lwuit.jar
then I click ok. It is success.
the following are my source code
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import com.sun.lwuit.Display;
import com.sun.lwuit.Form;
public class TestMidlet1 extends MIDlet {
Form frm=null;
public TestMidlet1() {
// TODO Auto-generated constructor stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
Display.init(this);
frm=new Form("Testing lwuit");
frm.show();
}
}
When I type the above code the eclipse pulsar does not shows any compile time error. But when I run it, then it shows the error. I print screen the error window and attached it please refer the attachment below.