我在JDE中写了个简单的MIDlet类,可是启动时报错(push是项目名称):
......
Starting push
VM:LINK push
Module 'push ' has verification error 2236 at offset 0x00EB
Linker error: 'VerifyError ' for push
......
源文件:
package com.lyl;
import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Display;
class MainMIDlet extends MIDlet
{
private Display display;
public MainMIDlet()
{
display = Display.getDisplay(this);
}
public void startApp()
{
System.out.println( "==============startApp is called. ");
Canvas c = new ShowCanvas( "TestBegin.... ");
display.setCurrent(c);
}
public void pauseApp()
{
System.out.println( "==============pauseApp is called. ");
}
public void destroyApp(boolean unconditional)
{
System.out.println( "==============destroyApp is called. ");
}