黑莓模拟器不创建 COD 文件

发布于 2024-08-15 06:54:45 字数 696 浏览 6 评论 0原文

这是对在 Blackberry 模拟器中出现程序出现问题或生成 COD 文件时遇到问题的任何人的解答。

我一直使用 Eclipse IDE 在 JAVA 中进行编程,并且我的程序在 BB 模拟器中运行良好。创建新包并向我的项目添加更多类文件后,我注意到我的更改没有反映在模拟器中。经过无数个小时尝试解决问题(清理、运行 clean.bat、删除 cod 文件、创建新工作区等 - 没有任何效果),我刚刚在论坛上发现了解决我的问题的答案:

http:// /supportforums.blackberry.com/t5/Java-Development/Eclipse-IO-Error-Cannot-run-program-quot-jar-quot-CreateProcess/td-p/37701

我的项目中有 116 个文件。我删除了两个包以使类数量低于 100,瞧,生成了一个新的 COD 文件,我的更改现在已反映在 Blackberry 模拟器中。这显然是 RIM 需要解决的一个 bug。我浪费了几天的时间来调试这个问题,直到找到解决方案。

希望这可以帮助有类似问题的人。

This is an answer to anyone having problems getting a program to appear in the Blackberry simulator or problems generating a COD file.

I have been programming in JAVA using the Eclipse IDE and my program was working fine in the BB simulator. After creating a new package and adding more class files to my project, I noticed that my changes were not being reflected in the simulator. After countless hours trying to solve the problem (cleaning, running clean.bat, deleting cod files, creating a new workspace, etc. - nothing worked) I just discovered an answer on a forum that solved my problem:

http://supportforums.blackberry.com/t5/Java-Development/Eclipse-I-O-Error-Cannot-run-program-quot-jar-quot-CreateProcess/td-p/37701

I had 116 files in my project. I deleted two packages to get the number of classes under 100 and, voila, a new COD file was generated and my changes are reflected now in the Blackberry simulator. This is obviously a bug that RIM needs to address. I wasted days debugging this until I found a solution.

Hoping this helps someone with similar problems.

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

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

发布评论

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

评论(1

回忆躺在深渊里 2024-08-22 06:54:45

我使用 Blackberry 已经有一段时间了,但是您应该检查两件事:

  • 检查您是否有一个大的类文件。单个 cod 文件限制为 64K,因此如果类文件超过 20-30K,有时编译器不够智能,无法将文件组织在多个代码文件中。
  • 使用 ant 构建文件进行编译,请参见此处 http://bb-ant-tools.sourceforge.net/文档

It's been a while from my Blackberry days, but there are two things you should check:

  • Check that you do not have a large class file. A single cod file is limited to 64K, so if a class file is more than 20-30K sometimes the compiler is not smart enough to organize the files in several code files.
  • Compile using ant build file, see here http://bb-ant-tools.sourceforge.net/docs
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文