LWUIT应用程序不会在黑莓设备启动 [英] LWUIT app doesn't start in a Blackberry device

查看:166
本文介绍了LWUIT应用程序不会在黑莓设备启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我绝望了。

我正在开发中LWUIT一个应用程序,使用资源编辑器。我的项目MIDP版做工精细,无论是在模拟器和设备上。但是,当我发现我的问题,当我开始测试我的黑莓应用程序。这个应用程序完美的作品在模拟器但在设备没有启动。它不会给出错误信息,并没有说什么。我尝试从LWUIT SVN或从资源编辑器(UI_RIM_Touch.jar)所产生的其他jar罐子改变UI_RIM.jar,却没有什么变化。我不知道,如果htttpConnections或FileConnections可以负责这个问题。我有2个黑莓机型,火炬和大胆。在任不起作用。

I'm developing an app in LWUIT, using the Resource editor. My project works fine in MIDP version, both in simulator and on devices. But when I find my issue when I start to test my app in Blackberry. The app works perfectly in the simulator but doesn't start in the devices. It doesn't give an error message, doesn't say anything. I try to change the UI_RIM.jar with the jars from LWUIT SVN or with the other jar generated from the Resource editor (UI_RIM_Touch.jar), but nothing changes. I don't know if the htttpConnections or FileConnections could be responsible of this issue. I have 2 Blackberry models, Torch and Bold. Does not work on either.

为了开发这个程序,我使用NetBeans和LWUIT 1.5

For developing this app, I'm using Netbeans and LWUIT 1.5

如果你需要看到一些code,告诉我你想要什么,我将它张贴

If you need to see some code, tell me what you want and I will post it

感谢


修改

有时候,我启动应用程序和30/45分钟出现下一个消息未捕获的异常在MIDlet的构造函数抛出:userclasses.MainMIDlet之后。我不知道是什么问题。

Sometimes, I start the app and 30/45 min after appears the next message "uncaught exception thrown in midlet constructor: userclasses.MainMIDlet". I don't know what is the problem.

推荐答案

RIM是地狱的工作,我觉得你的痛苦...的 codeNAME 之一将帮助在此方面。

RIM is hell to work with, I feel your pain... Codename One will help on that regard.

在一般这听起来像下列之一:

In general this sounds like one of the following:


  1. 您创建了一个MIDlet,而不是一个UIApplication的。确保您的类派生的UIApplication并且具有初始化类中的公共静态无效的主要(字串[] args)方法。另外,还要确保这个类是公共的!

  1. You created a MIDlet instead of a UiApplication. Make sure your class derives UiApplication and has a public static void main(String[] args) method which initializes the class. Also make sure that the class is public!

在编译过程中你没有定义的应用程序作为CLDC应用程序,并把它作为一个MIDlet。我们编辑在资源编辑器中的build.xml生成的文件来调用正确的版本。

During compilation you didn't define the application as a cldc application and left it as a MIDlet. We edited the build.xml in the resource editor generated files to invoke the proper version.

您与JDE比目标设备更新的编译。

You compiled with a JDE that is newer than the target device.

检查在alt-LGLG日志,看看是否有任何错误或消息。

Check in the alt-lglg log to see if you have any errors or messages.

这篇关于LWUIT应用程序不会在黑莓设备启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆