I’m getting this error from a while. I have 28 classes in a project and when I run it fails to make the package. It says:
"Error: jar command failed: jar -cfm "E:\Blackberry Workspace\Kenexa\deliverables\Standard\7.1.0\Kenexa.jar" C:\Users\Acer\AppData\Local ... Kenexa
line 0 BlackBerry Packaging Problem"
But when I limit the classes to 24 then it makes the package. Is it related to some size limit while making the package? What should I do to make the package successfully?
Thanks
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.