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
New Developer
rahul1802
Posts: 8
Registered: ‎07-24-2008
My Device: Not Specified
Accepted Solution

IO Error: output file: application.cod data section too large

Hello, When I compile my application using the BlackBerry JDE, I get the following error:

 

I/O Error: output file: application.cod data section too large

 

I get the error when using the JDE v4.2.1 or JDE v4.3. It works fine for v4.6 or above. 

 

I have another forum post regarding this issue here.

 

I have also read the following KB article here.

 

Based on the above I tried to split all the classes in my application but that does not seem to work. At the best case it compiles for a while and the problem comes back as I add more lines of code.

 

I was wondering if anyone has been able to solve the issue another way. Or if anyone knows the actual reason behind this issue?

 

Any help will be appreciated.

 

Thanks! 

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: IO Error: output file: application.cod data section too large

Try to split your application to the main app and dependant libraries.
Please use plain text.
New Developer
rahul1802
Posts: 8
Registered: ‎07-24-2008
My Device: Not Specified

Re: IO Error: output file: application.cod data section too large

Hey, I have one main class and one library that contains most of my image resources and rrc/rrh files. 

 

I will try to split into more libraries and see if that helps.

 

Thanks. 

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: IO Error: output file: application.cod data section too large

Try to make several small libraries.

 

 

Please use plain text.
New Developer
rahul1802
Posts: 8
Registered: ‎07-24-2008
My Device: Not Specified

Re: IO Error: output file: application.cod data section too large

I finally managed to fix this issue, here is the solution:

 

The issue occurs when the RAPC compiler is not able to properly account for one of the data resources. The RAPC compiler tries to package the data sections to a defauly max size of 61440 bytes. You can use the RAPC option "-datafull=N" where N is the max size of the data section, and set the size to be something less than the default value. With some experimentation on the size you will be able to bypass the issue. 

 

If anyone else if having this issue you can use the same trick to resolve it! 

Please use plain text.
Developer
trivedirujuta
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: IO Error: output file: application.cod data section too large

Hi,

I am facing the same problem. I am using JDE 4.7. How to that rapc value??Can you guide me?

Rujuta Trivedi
Please use plain text.
Contributor
sandeepsagark
Posts: 41
Registered: ‎07-19-2011
My Device: 9500
My Carrier: airtel

Re: IO Error: output file: application.cod data section too large

Hi Rahul,

 

Will you please explain how to change the RAPC option. I am also facing this problem.

Please use plain text.