Blackberry - “[projectname].debug file is missing” and “I/O Error: Cannot find program ”jar"

孤街醉人 提交于 2019-12-12 01:13:45

问题


I'm running eclipse with the Blackberry Java Plug-in, working on a 1.4.5 Blackberry project. The project has been building and debugging in the emulator normally until I started getting:

A prompt saying "[projectname].debug file is missing".

A message in the Blackberry Packaging Console saying "I/O Error: Cannot find program "jar": CreateProcess error=2."

Anyone have any ideas what could be causing this?


回答1:


It turns out that there can be a few different causes. In some instances, hitting the 100 class limit in the project can cause this.

In my case, the Environment Variable for Path in Windows > System Properties had disappeared. Something to note is that when you put it back in (in my case "c:\program files\java\jdk1.6.0_18\bin") it needs to be the first entry in the path variable.




回答2:


right-click My Computer -> Properties -> Advanced System Settings -> Environment Variables button

set the correct system variables, for example:

JAVA_HOME C:\Program Files\Java\jdk1.6.0_30

JRE_HOME C:\Program Files\Java\jre6



来源:https://stackoverflow.com/questions/3070970/blackberry-projectname-debug-file-is-missing-and-i-o-error-cannot-find-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!