黑莓模拟器没有创建COD文件 [英] Blackberry simulator not creating COD file

查看:224
本文介绍了黑莓模拟器没有创建COD文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



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



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需要解决的一个错误。我花了几天调试这个,直到找到一个解决方案。



希望这有助于有类似问题的人。

解决方案

从黑莓时代已经有一段时间了,但您应该查看两件事:




  • 检查你没有一个大的类文件。单个鳕鱼文件限制为64K,因此如果一个类文件超过20-30K,有时编译器不够巧妙地组织几个代码文件中的文件。

  • 使用ant编译构建文件,请参阅此处 http://bb-ant-tools.sourceforge.net/docs


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.

解决方案

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

这篇关于黑莓模拟器没有创建COD文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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