BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Porting a Midlet JAR/JAD to COD: data section too large (COD > 64 KB) (http://www.blackberryforums.com/developer-forum/145692-porting-midlet-jar-jad-cod-data-section-too-large-cod-64-kb.html)

Airport1 08-18-2008 06:10 AM

Porting a Midlet JAR/JAD to COD: data section too large (COD > 64 KB)
 
I am trying to port a jar/jad midlet by rapc call on the command line to Blackberry. I tried it like that:

C:\Programme\Research In Motion\BlackBerry JDE 4.5.0\bin>rapc import="..\lib\net_rim_api.jar" codename=MyProject -midlet jad=MyProject.jad MyProject.jar

this seems to work good for a while, it parses, reads, gives warnings and so on. But at least it stops with:

I/O Error: output file: MyProject-64.cod data section too large: 65284 bytes.
output file: MyProject-75.cod data section too large: 65068 bytes.
output file: MyProject-219.cod data section too large: 65176 bytes.

A little but confusing is that this message is for 64 KB CODs "not really true"? 64 KB should be 65536 (or 65535) byte, and this is below that?

Is there a easy way to solve this problem? It would be heavy to separate all into 64K blocks by hand.

Airport1 08-18-2008 10:03 AM

seems the problem were the resource files. there were some png images ranging from 30 kb to 218 kb. tried to compress them with irfanview and yehaaa.. it works now :)


All times are GMT -5. The time now is 02:27 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.