tags:

views:

28

answers:

1

i have doing j2me app using LWUIT lib. it get nearly 600kb. then i have use net-bean default Obfuscation tool. but still it size is not less than 430kb. any idea?

+1  A: 

check your resources, they might be too large. Also make sure there aren't any hidden files in your jar file, for example make sure the Thumps.db which generated in windows is not there!

Mahdi Hijazi
Mahdi my resources file is size 86kb.
Kombuwa
theri is no any auto generated Thumps.db file.
Kombuwa
my all src folder size is 172kb. but jar?
Kombuwa
extract your jar file and check every folder to see which one causes this problem, also make sure you show the hidden files before the check.
Mahdi Hijazi
it get 732kb for lwuit lib. igess it the reson. any way to reduce this?
Kombuwa
put the obfuscation level to the maximum in NetBeans
Mahdi Hijazi
yes i used level 8
Kombuwa
did you used lwuit lib before? if how much nomly get siz your jars?
Kombuwa
yes, I am using it for every single application I build. Normally the size between 200-400 KB which depends on my resources. Level 8 is not enough you should put it on the maximum and see what you will got.
Mahdi Hijazi
thanks Mahdi Hijazi.
Kombuwa
i use maximum obfuscation level then it reduce to 200kb. then i use kjar to recompress it now size is 193kb. some of my other game reduce to 166kb. thanks for the tip.
Kombuwa