public class CanvasTestMIDlet extends MIDlet{
public CanvasTestMIDlet(){
display=Display.getDisplay(this);
}
public void startApp(){
KeyEventTestCanvas2 mc=new KeyEventTestCanvas2();
display.setCurrent(mc);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
}
private Display display;
}
下面是ECLIPSE运行后的ERRORLOG
Warning: Running JAM, Ignoring all other options (but "-Xheapsize", and OTA flags if provided)
正在通过存储根 DefaultColorPhone 来运行
** Error installing suite (39): The JAD matches a version of a suite already installed.
Execution completed.
199262 bytecodes executed
7 thread switches
483 classes in the system (including system classes)
1262 dynamic objects allocated (53832 bytes)
1 garbage collections (0 bytes collected)