Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java me 空的状态机基地?_Java Me_Lwuit - Fatal编程技术网

Java me 空的状态机基地?

Java me 空的状态机基地?,java-me,lwuit,Java Me,Lwuit,你好,我最近开始使用资源编辑器,我有一个问题:我正试图在资源编辑器中创建一个简单的项目,只是为了测试目的:没有什么特别的,只是一个带有hello world的标签,但是当我在创建所有项目(JavaSE、MIDP、RIM)的同时按下“create Netbeans project”时,没有一个项目正在运行。在普通JaVA中,我只得到一个黑屏,在MIDP emulator中,我得到一条消息,说“这个应用程序在后台运行” 我的StateMachineBase代码是 public class State

你好,我最近开始使用资源编辑器,我有一个问题:我正试图在资源编辑器中创建一个简单的项目,只是为了测试目的:没有什么特别的,只是一个带有hello world的标签,但是当我在创建所有项目(JavaSE、MIDP、RIM)的同时按下“create Netbeans project”时,没有一个项目正在运行。在普通JaVA中,我只得到一个黑屏,在MIDP emulator中,我得到一条消息,说“这个应用程序在后台运行”

我的StateMachineBase代码是

public class StateMachineBase {
    public StateMachineBase(String s) {}
}
我的状态机代码是:

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() {
}
所以我猜我的prgram显然不会做任何事情,因为没有代码。我做错了什么?据我所知,StateMachineBase应该拥有所有锅炉代码。我使用的是Netbeans 6.9.1、LWiit最新版本、JavaME SDK 3.0和诺基亚S60 SDK


谢谢。

好吧,我会回答我自己的帖子。我随机发现,如果保存res文件并重新打开它,它就可以正常工作。Shai Almog在他的博客中证实了这一点,他说这是一个bug,将在下一版本中修复