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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 21
Registered: ‎04-10-2013
My Device: All
My Carrier: 447920403580
Accepted Solution

How can I make my program work with more than 100 class files?

As soon as my program produces over 100 class files I get the following error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified. Is there any way I can increase this limit? My program is only small. There must be way to make it work and still add all the functionality that I need to add. Thank you

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How can I make my program work with more than 100 class files?

I have applications with more than 200 class files, so it surprises me that this is a limit that you seem to have hit.

 

Search for other similar problems that have been reported, for example this one:

http://supportforums.blackberry.com/t5/Java-Development/Error-Cannot-run-program-quot-jar-quot-Creat...

Highlighted
Contributor
Posts: 21
Registered: ‎04-10-2013
My Device: All
My Carrier: 447920403580

Re: How can I make my program work with more than 100 class files?

I've looked at that and the solution simply does not work. I set my environment to add java bin path and it still wouldn't work. I searched my entire computer for the jar.exe and I could not find it. What's the best way to reduce the number of class files without losing any functionality of my program?

Contributor
Posts: 21
Registered: ‎04-10-2013
My Device: All
My Carrier: 447920403580

Re: How can I make my program work with more than 100 class files?

I got it working. I reinstalled JDK, then set the path in the environment variable, restarted eclipse and it worked. It's still a mystery why it worked before I had 100 classes.