Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Developer
bo
Posts: 167
Registered: 11-12-2008

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"?

Please use plain text.
Developer
jprofitt
Posts: 604
Registered: 12-27-2010

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.

Please use plain text.
Developer
Developer
bo
Posts: 167
Registered: 11-12-2008

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...

Please use plain text.