13,100
社区成员
发帖
与我相关
我的任务
分享
public class demo extends MIDlet {
Form mainForm=null;
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
mainForm=new Form("title");
mainForm.setLayout(new BorderLayout());
mainForm.addComponent(BorderLayout.CENTER, new Label("HelloWorld"));
mainForm.setTransitionOutAnimator(CommonTransitions.createFade(400));
mainForm.addCommand(new Command("Run", 2));
mainForm.show();
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
}
Running in the identified_third_party security domain
java.lang.ClassNotFoundException: demo
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Scheduler.schedule(+52)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)
Execution completed.