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?
Asked
Active
Viewed 1,048 times
1 Answers
1
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
- 4,424
- 3
- 24
- 29
-
Mahdi my resources file is size 86kb. – Kombuwa Oct 15 '10 at 12:15
-
theri is no any auto generated Thumps.db file. – Kombuwa Oct 15 '10 at 12:15
-
my all src folder size is 172kb. but jar? – Kombuwa Oct 15 '10 at 12:17
-
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 Oct 15 '10 at 13:59
-
it get 732kb for lwuit lib. igess it the reson. any way to reduce this? – Kombuwa Oct 15 '10 at 15:22
-
put the obfuscation level to the maximum in NetBeans – Mahdi Hijazi Oct 15 '10 at 15:35
-
did you used lwuit lib before? if how much nomly get siz your jars? – Kombuwa Oct 15 '10 at 17:54
-
1yes, 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 Oct 15 '10 at 18:12
-
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 Oct 16 '10 at 10:16