Obfuscation / bytecode optimization

Wednesday, August 29, 2007 Labels:

Reducing size by obfuscating your midlet class files is a standard approach when developing J2ME games. It’s also a good way to protect your sources (non-obfuscated java class files can be decompiled from it’s bytecode to almost the same format as it was before you compiled your sources). Some obfuscators also has bytecode optimization features. That means that it analyzes the code and removes code and declarations that simply isn’t needed for the application’s functionality. A standard optimization that an optimizer can do is to remove all final static constants declarations.

The king of the java obfuscators / bytecode optimizers is Proguard. use it with eclipse or jbuilder.


Post a Comment

Waqas Sadiq © 2014