2012-08-11 50 views
1

我使用ResourceEditor开发了Rss App LWUIT项目。ResourceEditor LWUIT NoClassDefFoundError:com/app/XMLMidlet:com/sun/lwuit/events/ActionListener

我打开Netbeans IDE中的项目,我也跟着在诺基亚开发者网站链接生成在资源编辑器 NetBeans项目 - Adding GUI resource file manually into your project

在运行我的申请,我对着未捕获的异常

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

我可以做任何额外的东西吗?

回答

2

复制资源文件到您的包文件夹,然后 ,

Display.init(this); 
    try { 
     Resources r = Resources.open("/resource.res"); 

     UIManager.getInstance().setThemeProps(r.getTheme(
      r.getThemeResourceNames()[0]) 
     ); 
    } catch (java.io.IOException e) { 
    }