Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Developer
Posts: 167
Registered: ‎11-12-2008
My Device: Not Specified

CreateProcess error=2 - Limitation on the number of compiled classes

I'm getting this infamous error:

 

I/O Error: Cannot run program "jar": CreateProcess error=2,

 

the SDK is in my system path, so I thinik it might be because I have more than 100 compiled classes in my project.

 

http://supportforums.blackberry.com/t5/Java-Development/why-cause-more-then-100-compiled-classes-pac...

 

Is there any solution besides "Use less classes"?

Developer
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

Re: CreateProcess error=2 - Limitation on the number of compiled classes

Open up a command prompt and type "jar" in there. If it says it can't find the file you just need to add it to your PATH. For instance, jar.exe is at C:\Program Files\Java\jdk1.6.0_22\bin for me and when I ran into that problem I just put it into the PATH (at the end for me, order did matter because when I put it at the start Eclipse wouldn't run) and then everything was fine.

Developer
Developer
Posts: 167
Registered: ‎11-12-2008
My Device: Not Specified

Re: CreateProcess error=2 - Limitation on the number of compiled classes

Yup, sorry, forgot to mention that the JAR is in my PATH. 

 

Jar runs fine when I ty'e "jar" in cmd.exe. I'm baffled...