【问题标题】:Empty statemachine base?空状态机基础?
【发布时间】:2011-04-06 20:18:46
【问题描述】:

你好我最近开始使用资源编辑器,我有一个问题:我正在尝试创建一个简单的项目,只是为了在资源编辑器中进行测试:没什么特别的,只是一个带有你好世界的标签,但是当我推送“创建 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、Lwit 最新版本以及 JavaME SDK 3.0 和 Nokia S60 SDK。

谢谢。

【问题讨论】:

    标签: java-me lwuit


    【解决方案1】:

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

    Shai's answer to my post

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多