HOME   |  ARTICLES   |  LEARN J2ME   |  DID YOU KNOW |  TESTS |  SHOPPING |  ABOUT DUCKLING |

Advertisements


Home > Articles > JAR Size Optimization
J2ME JAR size optimization: Decrease your JAR's size

J2ME devices have JAR File restrictions and this could vary from 32 KB to 200KB and over. Depending on the devices your application is ported to, JAR sizes have to be decreased, here are some of the tricks you can use for decreasing the JAR file sizes. Never start coding with optimization in mind. Only optimize at the fag end of the project after all code readability is also important. Intermediate device deployments can also be done to check the device compatibility and to get a fair idea of how your application works on the target devices.

Thumb rule for coding J2ME applications is modular programming approach. Never use design patterns when the target devices consist of low end devices. We may also think about two code bases one for high end devices with colorful images etc and another for low end devices with bare bone functionality.

Unlike desktop or web applications J2ME comes with the extra baggage of file sizes. Make sure at the design stage all these issues are taken care and a careful analysis should be done regarding the JAR file sizes.

site comments powered by Disqus