Blackberry Error: Jar Command Failed

纵然是瞬间 提交于 2020-01-16 19:45:06

问题


Following is the error I get

Error: jar command failed:

jar -cfm "E:\Blackberry Workspace\Kenexa\deliverables\Standard\7.1.0\Kenexa.jar"

C:\Users\Acer\AppData\Local ... Packaging project Kenexa failed (took 8.81 seconds)

Project was just working fine, and it suddenly occurred. I have read the forums they said to set the environmental variable for the jdk to the system and also some said to place the jre exe file in jdk something like this, I did both the options but still not working and I get this error.

But when I delete some classes it starts working and adding new classes again gives this problem, I have total of 22 classes right now, is this something related to size or limitations??

Thanks for the Help!


回答1:


Answer from Blackberry Support Are you using the BlackBerry JDE or BlackBerry Java Plug-in for Eclipse?

If you are using the BlackBerry JDE you could be running into an issue where you have reached the maximum supported length for a command line (all files are listed on a command line). If this is the case you could resolve it by reducing the number of classes (as you have done) or by reducing the length of the path to your source files (move them closer to the root of your drive). Mark Sohm BlackBerry Development Advisor

So, I just have to change my workspace folder name from "Blackberry Workspace" to "Workspace". The command line was not taking long path.



来源:https://stackoverflow.com/questions/13249011/blackberry-error-jar-command-failed

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