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
viral
Posts: 6
Registered: ‎07-22-2008
My Device: Not Specified

Code section too large

hi again

i develop game in java on bbs

when we are tring to download game we get:

 

907 Invalid JAR

output file: downloadjar-1.cod code section too large: 67232 bytes.

 

I assume there is some kind of limit on code (i can bet 64k) ?

how can i be sure my midlet (jar/jad) will change to .cod properly ?

 

Please use plain text.
Developer
bwei
Posts: 26
Registered: ‎07-14-2008
My Device: Not Specified

Re: Code section too large

 

Look at the following BB KB articles.

 

What Is - The file size limit for wireless downloads

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/What_Is_-_The_file_size_limit_for_wireless_downloads.html?nodeid=800442&vernum=0

 

 

Support - 907 Invalid Jar Error when installing an application wirelessly

 

 http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/Support_-_907_Invalid_Jar_Error_when_installing_an_application_wirelessly.html?nodeid=1017517&vernum=0

 

 

Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: Code section too large

[ Edited ]
To be sure reasonably split your big application to the several libraries.
Message Edited by rafo on 09-05-2008 01:26 PM
----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
New Developer
viral
Posts: 6
Registered: ‎07-22-2008
My Device: Not Specified

Re: Code section too large

thx guys

i know methods to reduce problems of too large code

but i need method to verify if i have reduced it enough

 

if i create .cod in JDE and upload game via cable

everything is ok

if i want to install the game over internet

i got problems

 

so the only method of veryfication is to try to upload over the air

thx for interest

Please use plain text.
Developer
peter_strange
Posts: 19,598
Registered: ‎07-14-2008
My Device: Not Specified

Re: Code section too large

[ Edited ]

I'm sure there are easier ways, but I do the following, using the JDE:

a) delete the *.jad files associated with the project I'm building

b) compile

c) check the jad looking for references to sibling cods, i.e. ones with names like <cod name>-1.cod.

Hope this helps.

 

Edit:  Having re-read the original question, I not sure this helps.  I don't see how this will detect that a sibling file is actually too big, which seems to be your problem.  Sorry, I don't know.

Message Edited by peter_strange on 09-08-2008 10:36 AM
Please use plain text.