LWUIT 应用程序无法在 Blackberry 设备中启动
我很绝望。
我正在使用资源编辑器在 LWUIT 中开发一个应用程序。我的项目在 MIDP 版本中运行良好,无论是在模拟器中还是在设备上。但是当我开始在黑莓中测试我的应用程序时发现问题。该应用程序在模拟器中完美运行,但无法在设备中启动。它不会给出错误消息,也不会说什么。我尝试使用 LWUIT SVN 中的 jar 或资源编辑器 (UI_RIM_Touch.jar) 生成的其他 jar 来更改 UI_RIM.jar,但没有任何变化。我不知道 htttpConnections 或 FileConnections 是否会导致此问题。我有 2 个黑莓型号:Torch 和 Bold。两者都不起作用。
为了开发这个应用程序,我使用 Netbeans 和 LWUIT 1.5
如果您需要查看一些代码,请告诉我您想要什么,我将发布它,
谢谢
编辑
有时,我启动应用程序,30/45 分钟后出现下一条消息“midlet 构造函数中抛出未捕获的异常:userclasses.MainMIDlet”。我不知道出了什么问题。
I'm desperate.
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.
For developing this app, I'm using Netbeans and LWUIT 1.5
If you need to see some code, tell me what you want and I will post it
Thanks
EDIT
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与 RIM 合作真是太糟糕了,我能感受到你的痛苦... Codename One 将在这方面提供帮助。
一般来说,这听起来像以下情况之一:
您创建了一个 MIDlet 而不是 UiApplication。确保您的类派生 UiApplication 并具有用于初始化该类的 public static void main(String[] args) 方法。还要确保该类是公共的!
在编译期间,您没有将应用程序定义为 cldc 应用程序,而是将其保留为 MIDlet。我们在资源编辑器生成的文件中编辑了 build.xml 以调用正确的版本。
您使用比目标设备更新的 JDE 进行编译。
检查 alt-lglg 日志以查看是否有任何错误或消息。
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:
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!
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.
You compiled with a JDE that is newer than the target device.
Check in the alt-lglg log to see if you have any errors or messages.