你好我最近开始使用资源编辑器,我有一个问题:我正在尝试创建一个简单的项目,只是为了在资源编辑器中进行测试:没什么特别的,只是一个带有你好世界的标签,但是当我推送“创建 Netbeans 项目”时所有项目(JavaSE、MIDP、RIM)都是创建的,它们都没有运行。在普通的 JaVA 中,我只是黑屏,在 MIDP 模拟器中,我收到一条消息,说“此应用程序在后台运行”。
我的 StateMachineBase 代码是这个
public class StateMachineBase {
public StateMachineBase(String s) {}
}
我的 StateMachine 代码是这样的:
public StateMachine(String resFile) {
super(resFile);
// do not modify, write code in initVars and initialize class members there,
// the constructor might be invoked too late due to race conditions that might occur
}
/**
* this method should be used to initialize variables instead of
* the constructor/class scope to avoid race conditions
*/
protected void initVars() {
}
所以我猜我的 prgramm 显然不会做任何事情,因为没有代码。我究竟做错了什么?据我了解,StateMachineBase 应该包含所有锅炉代码。我使用的是 Netbeans 6.9.1、Lwiit 最新版本以及 JavaME SDK 3.0 和 Nokia S60 SDK。
谢谢你。