ssa
ssa

Reputation: 309

How to remove unused classes of LWUIT?

I have written a simple J2ME app using Lwuit library, it is working good but my problem is that even my code is very small but the app size becomes 700kb means all the classes of lwuit gets included in my app though I am only using 5-6 of its classes. I have also tried Obfuscation with High level and app size decrease but still it is Big in size about 300kb(only for HelloWorld!). So please tell me any way to remove these unused classes and make this app smaller in size.

Upvotes: 0

Views: 190

Answers (2)

Ian
Ian

Reputation: 711

If you've done obfuscation properly (and it is pretty straight forward if you're using netbeans), then any unused classes will be removed. I would not recommend manually deleting the .class files because jar size is an important field in the jad and/or manifest files.

When you opened the jar, do you see a bunch of .class files?

Upvotes: 1

Mun0n
Mun0n

Reputation: 4437

I suppose that you can open the .jar with some application like winRar and delete the .class that you will not use, but be carefull removing this .class.

Upvotes: 0

Related Questions