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
Developer
ekke
Posts: 1,544
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: why cause more then 100 compiled classes packaging I/O error ?

...does this question mean, that jar.exe only was used if there are more then 100 compiled classes in the blackberry eclipse project ?

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,677
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: why cause more then 100 compiled classes packaging I/O error ?

jar.exe is used after the application reaches a certain size, which appears to be occurring at the 100 class level for your project.  I have seen similar behaviour for other unrelated numbers.  When it reaches the size limit for a single COD file, sibling COD files are created and then packaged into a parent cod file (using jar.exe).

 

You mentioned that you had another large project, which did produce sibling COD files (and therefore would be using jar.exe).

 

Have you tried creating a new project for your main application?  There could be a configuration issue with the project itself.

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
ekke
Posts: 1,544
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: why cause more then 100 compiled classes packaging I/O error ?

just yesterday I created a new project which will around the same size I think.

so next days I'll try again to fill it up with more then 100 classes.

 

thanks for explaining what happened.

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
wfilla
Posts: 41
Registered: ‎01-27-2011
My Device: Not Specified

Re: why cause more then 100 compiled classes packaging I/O error ?

"jar.exe is used after the application reaches a certain size, which appears to be occurring at the 100 class level for your project.  I have seen similar behaviour for other unrelated numbers.  When it reaches the size limit for a single COD file, sibling COD files are created and then packaged into a parent cod file (using jar.exe)."

 

Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

 

I have this same problem. How can you get Eclipse to find jar.exe?

Please use plain text.
Developer
ekke
Posts: 1,544
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: why cause more then 100 compiled classes packaging I/O error ?

jar.exe must be found from PATH entries

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
wfilla
Posts: 41
Registered: ‎01-27-2011
My Device: Not Specified

Re: why cause more then 100 compiled classes packaging I/O error ?

My ClassPath is set to:

 

C:\Program Files\Java\jdk1.6.0_23\bin; C:\j2sdk1.4.2\bin;

 

the jar.exe is located in C:\j2sdk1.4.2\bin

 

Is this correct?

Please use plain text.
Developer
ekke
Posts: 1,544
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: why cause more then 100 compiled classes packaging I/O error ?

 

PATH=C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\Program Fi
les (x86)\Java\jdk1.6.0_21\bin;C:\Windows\system32;C:\Windows;C:\Windows\System3
2\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Mercur
ial\

 

my jar.exe is in jdk1.6.0_21\bin

 

if you need the jar.exew from your 1.4.2 then this must be the first entry 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
wfilla
Posts: 41
Registered: ‎01-27-2011
My Device: Not Specified

Re: why cause more then 100 compiled classes packaging I/O error ?

I'm sorry, my jar.exe is also in

 

C:\Program Files\Java\jdk1.6.0_23\bin

 

It seems that I have multiple ones. So then is it an issue of Eclipse not knowing how to get to it?

 

 

Please use plain text.
Contributor
wfilla
Posts: 41
Registered: ‎01-27-2011
My Device: Not Specified

Re: why cause more then 100 compiled classes packaging I/O error ?

I think it is now fixed. It turns out that the variable needed to be moved in the PATH, not just the CLASSPATH location. I also had to restart Eclipse before it could see the changes.

 

Thanks for your help!

Please use plain text.