AT07
AT07

Reputation: 98

Can I reduce the size of J2ME jar that is written with LWUIT?

I write J2ME application with LWUIT. After I finished my application, jar size is 0.99Mb. That is terrible size and that cannot debug with NetBean IDE 6.9 emulator. Only one touch emulator in NetBean IDE 6.9 can run it and other are not sufficient space to install. But I test my application with Nokia 5530 and Nokia N85, that is good for use. But other lowest JVM mobile phone doesn't run that size. How can I reduce the size of jar? LWUIT jar size (need to add jar for my application) is 700kb...

Upvotes: 2

Views: 961

Answers (2)

bharath
bharath

Reputation: 14453

Use obfuscating for reducing the jar file size. Set the obfuscating level to High in your netbeans project. And then clean and build the project. Now see the jar file size. It will be reduce.

Upvotes: 3

gertas
gertas

Reputation: 17145

Obfuscation may be the way but I'm sure you won't use all features of LWUIT then removing unused classes by jarOpt should help. And generally repack all jars and classes into one JAR with highest compression level.

Upvotes: -1

Related Questions