File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Maximum JAR file size on i85s Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Maximum JAR file size on i85s" Watch "Maximum JAR file size on i85s" New topic
Author

Maximum JAR file size on i85s

Fred Eno
Greenhorn

Joined: Oct 09, 2000
Posts: 8
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

Joined: Nov 16, 2001
Posts: 3
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

Joined: Nov 20, 2001
Posts: 1
Fred, we did it with jars larger that 100K.
It works.
 
 
subject: Maximum JAR file size on i85s
 
Threads others viewed
Java Phone API and JTAPI
Its about uniqueIDs again! Problems with downloading modified jar files
Motorola V3 Midp Installation error
Heap, Data space and Prog space !
Storage options available in JavaME
developer file tools