Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reduce Java ME application size?

Tags:

java

java-me

Working with Java ME I encountered the following problem:

All classes (including anonymous) in project transforms into separated files after the project building. This leads to an increase of application size as each individual file is not less than 1 kilobyte in the assembled package.

This problem is especially critical in J2ME where the application size is so critical.

My questions are:

  1. Is there a way to get around this problem?
  2. Is it possible to use the specific method for reducing the size of the application?
like image 862
Galogen Avatar asked Jul 09 '12 10:07

Galogen


1 Answers

Which devices are you targeting? This used to be a problem on legacy devices years ago, but unless your MIDlet is really huge you shouldn't have too much of a problem these days. Have you actually encountered an issue, or are you seeking advice on how to prevent it in future?

You can obfuscate and reduce compiled class sizes using Proguard.

like image 64
funkybro Avatar answered Oct 02 '22 13:10

funkybro