打包 Blackberry 项目失败且项目未加载到 Blackberry Simulator

发布于 2024-11-16 22:57:38 字数 171 浏览 3 评论 0原文

每次我在 Eclipse 上运行 bb 模拟器时,它总是给我“打包项目失败”,并且我的项目有时确实会出现在黑莓模拟器上的下载中(即使它在打包中失败),但大多数时候,它说“找不到模块”或者它没有加载到模拟器中。

造成此问题的原因是什么?如何解决?谢谢。

我使用的是 OS 5 的 9700 模拟器。

Everytime I run the bb simulator on my Eclipse, it always gives me "Packaging Project Failed" and my project sometimes does show up in the downloads on the blackberry simulator (even it is failed in the packaging), but most of the time, it says "Module cannot be found" or it isn't loaded to the simulator.

What is the cause of this problem and how do I fix it? Thanks.

I am using 9700 simulator with OS 5.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凯凯我们等你回来 2024-11-23 22:57:38

有几种可能会导致这种情况。以下是过去帮助我诊断和修复这些问题的一些内容:

  • 查看 Eclipse 工作区中的项目目录,看看是否有任何 *.err 文件。有时编译会失败,但它不会告诉您它失败了,而是会在这些文件中记录一条错误消息,并给出与您所看到的类似的错误。 *.err 文件将包含有关所发生的特定错误的更多信息。
  • 尝试重置黑莓模拟器(转至/plugins/net.rim.ejde.componentpack/components/simulator,然后运行“clean.bat”)。有时,模拟器会进入一种奇怪的状态,无法与 eclipse 通信
  • 。 在 eclipse 中清理并重建项目。这与最后一点类似,但清理了 eclipse<-> 模拟器通信的另一端。
  • 如果您创建了任何实现 Persistable 的类,请确保它们不具有任何类未实现 Persistable 的字段。这将阻止代码编译和/或运行,但黑莓插件不会告诉您出现任何问题。
  • 作为最后的手段,我发现有时会删除 Eclipse 中的项目(不是源代码)并重新创建它(即再次设置描述符文件,并将源链接到构建路径) )有时可以解决问题。当我这样做时,我通常还会重置模拟器,只是为了确保一切都尽可能干净。

There are a few possibilities that might causes this. Here are a few thing that have helped me diagnose and fix these issues in the past:

  • Look in the project directory in your eclipse workspace and see if there are any *.err files. Sometimes compilation will fail, but it will not tell you that it failed, and will instead log an error message to these files and give errors similar to the ones you are seeing. The *.err file will contain more information about the specific error that occurred.
  • Try resetting the blackberry simulator (go to /plugins/net.rim.ejde.componentpack/components/simulator, and run 'clean.bat'). Sometimes the simulator gets into a weird state where it has trouble communicating with eclipse
  • Clean and rebuild the project in eclipse. This is similar to the last point, but cleans the other side of the eclipse<->simulator communication.
  • If you have created any classes that implement Persistable, ensure that they do not have any fields whose class does not implement Persistable. This will prevent the code from compiling and/or running, but the blackberry plugin will not tell you that anything went wrong.
  • As a last resort, I have found that sometimes deleting the project in eclipse (not the source code) and re-creating it (i.e. setting up the descriptor file again, and linking the source to the build path) sometimes solves the problem. I usually also reset the simulator when I do this, just to make sure everything is as clean as possible.
爱冒险 2024-11-23 22:57:38

您还应该确保您使用的是 32 位 Java。

You should also make sure you are using 32bit Java.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文