• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maximum JAR file size on i85s

 
Fred Eno
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a Midlet for the Motorola i85s phone, and would be interested in hearing about anybody's experience with large JAR files on this (or any other) phone. The Motorola documentation says that the largest JAR file allowed is 50k, which includes all class files and resources -- this seems awfully small to me.
It seems that this number is more of a guideline, and when the midlet is "installed" the class files are copied to the phone's program space, and other resource files (eg png's) are copied to the phone's data space. The specs for the i85s are 384k total program space and 256k total data space. Some of this is taken up by bundles apps and java itself, but another poster here says his i85s phone reports 99k available program space, and 209k available data space. Given those numbers, it seems that I should be able to fit a midlet that has say 80k of class files and 100k of data files -- which would result in a jar file of roughly 140k assuming class files compress 50% and png's dont compress at all. This is alot greater than the 50k limit suggested by Motorola.
Does anybody have any experience with large-ish JAR files who can verify that 100k+ JAR files are usable?
Thanks,
Fred
 
Stephen Cole
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the i85s we were able to load 100k jar files created with full compression. When they got to the phone they took up about 180k-195k of program space and about 10k of data space (we sometimes used the dasho-embedded obfuscator, this did not shrink the jar size much, but when the app was installed on the phone it shrunk the amount of program space needed)
From what I learned from Motorola the issue appears to be the staging space on the phone where the jar is decompressed and the installation is done. This has a limit of 128k so our guess was that the compressed jar could never be more than 128k. But we never tried with a jar greater than about 108k.
 
John Roujinsky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fred, we did it with jars larger that 100K.
It works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic