• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nokia 7210 emulator 'over 64 kB warning' but jar is just 63.3 ?

 
Kris Sobczak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My midlet of 64 850 jar size (jad 160 bytes) generates on Nokia 7210 emulator "Jar file is too large to run on actual phone" message. It is just 63.3 kB - within limit.
I compared another midlet which is 63.6 and runs fine without such message.
Do you have any idea why?
I found out that the "too large" warning disappears when jar size gets below 62.5 kB. Unfortunately all is just already as squeezed and optimized as I could manage so I really need almost all of 64 kB
Apparently size verification mechanizm is not as simple as comparing jar size with some constant - have you heard of any materials available on this?
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well
Notice that 62.5 K = 62.5 * 1024 = 64000 exactly.

I guess 64000 is the real limit used by the phone, not 64K = 64 * 1024

This seems dumb ... but I guess that's how they've done it.
[ June 04, 2005: Message edited by: Eduardo Marques ]
 
Kris Sobczak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Notice this sentence:
"I compared another midlet which is 63.6 and runs fine without such message."
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. The other MIDlet, you packaged it using the same process?
But what I said makes some kind of sense anyway.

To make the JAR file smaller try compressing some items on the Jar file, images for example.

Also, verify if the MIDlet-Jar-Size is correcty filled in the JAD file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic