eclipse下j2me开发模拟器一闪而过
编译在consle中提示RunningwithstoragerootMediaControlSkinRunningwithlocale:Chinese_People'sR...
编译在consle 中提示Running with storage root MediaControlSkin
Running with locale: Chinese_People's Republic of China.936
java.lang.ClassNotFoundException: ludj
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(+116)
Execution completed.
3402363 bytecodes executed
29 thread switches
1646 classes in the system (including system classes)
17577 dynamic objects allocated (522208 bytes)
1 garbage collections (0 bytes collected)
我的代码是package myme;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ludj extends MIDlet {
private Display display;
public ludj() {
display = Display.getDisplay(this);
}
public void startApp() {
TextBox t = new TextBox("Hello MIDlet", "Hello MIDP!", 256, 0);
display.setCurrent(t);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
在线等………………
补充:1 改路径为英文
2 删除C:\WTK22\appdb\DefaultColorPhone下的临时文件
3 将Window->Preferences->Java->Debug->Communication的Debugger timeout时间设置的长一些,比如15000。
这几样我都试过了,可还是发模拟器一闪而过
请高人指点
答好了我可以加分50 展开
Running with locale: Chinese_People's Republic of China.936
java.lang.ClassNotFoundException: ludj
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(+116)
Execution completed.
3402363 bytecodes executed
29 thread switches
1646 classes in the system (including system classes)
17577 dynamic objects allocated (522208 bytes)
1 garbage collections (0 bytes collected)
我的代码是package myme;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ludj extends MIDlet {
private Display display;
public ludj() {
display = Display.getDisplay(this);
}
public void startApp() {
TextBox t = new TextBox("Hello MIDlet", "Hello MIDP!", 256, 0);
display.setCurrent(t);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
在线等………………
补充:1 改路径为英文
2 删除C:\WTK22\appdb\DefaultColorPhone下的临时文件
3 将Window->Preferences->Java->Debug->Communication的Debugger timeout时间设置的长一些,比如15000。
这几样我都试过了,可还是发模拟器一闪而过
请高人指点
答好了我可以加分50 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询