我的J2ME的一个错误问题!
usxue 2002-05-06 07:51:10 我在J2ME Wireless Toolkit中运行一个HelloWorld的程序,但出现以下的错误:为什么啊,我的程序应该是没有问题的啊!
源程序:
//HelloWorld.java,一个最简单的MIDlet程序。
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloWorld extends MIDlet implements CommandListener {
private Command exitCommand;
private TextBox tb;
public HelloWorld(){
exitCommand =new Command("Exit",Command.EXIT,1);
tb =new TextBox("你们好吗?","Hello,World!",15,0);
tb.addCommand(exitCommand);
tb.setCommandListener(this);
}
protected void startApp(){
Display.getDisplay(this).setCurrent(tb);
}
protected void pauseApp(){
}
protected void destroyApp(boolean u){
}
public void commandAction(Command c,Displayable d){
if (c ==exitCommand){
destroyApp(false);
notifyDestroyed();
}
}
}
当我Build的时候,出现的以下错误:为什么???谢谢!
Project "UIDemo" loadedProject settings savedBuilding "UIDemo"[Output directory for verified classes: e:\J2mewtk\apps\UIDemo\classes]Error preverifying class midp.uidemo.TextBoxDemo Class loading error: Illegal constant pool indexcom.sun.kvem.ktools.ExecutionException: Preverifier returned 1Build failed