【问题标题】:ResourceEditor LWUIT NoClassDefFoundError: com/app/XMLMidlet: com/sun/lwuit/events/ActionListenerResourceEditor LWUIT NoClassDefFoundError: com/app/XMLMidlet: com/sun/lwuit/events/ActionListener
【发布时间】:2012-08-11 06:04:47
【问题描述】:

我使用 ResourceEditor 开发了 Rss App LWUIT 项目。

我在 Netbeans IDE 中打开了该项目,我点击了开发人员诺基亚网站上的链接Generating the NetBeans project in the Resource Editor - Adding GUI resource file manually into your project

在运行我的应用程序时,我遇到了未捕获的异常

 java/lang/NoClassDefFoundError: com/app/XMLMidlet: com/sun/lwuit/events/ActionListener

我可以做任何额外的事情吗?

【问题讨论】:

    标签: java-me lwuit


    【解决方案1】:

    将 res 文件复制到你的包文件夹, 那么,

    Display.init(this);  
        try {
            Resources r = Resources.open("/resource.res");
    
            UIManager.getInstance().setThemeProps(r.getTheme(
                r.getThemeResourceNames()[0])
            );
        } catch (java.io.IOException e) {
        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-01-23
      • 2020-03-16
      • 1970-01-01
      • 1970-01-01
      • 2013-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多