• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic