Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Revision as of 10:48, 24 July 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


From Wiki
Jump to: navigation, search

This article explains how "Obfuscation" can be used to optimise your code and make it harder to copy. It also lists some of the more important Java ME obfuscator software.

Article Metadata
Created: wang_shui (23 Mar 2007)
Last edited: hamishwillee (24 Jul 2013)



Obfuscation refers to "the deliberate act of non destructively changing either the source code of a computer program or machine code when the program is in some compiled or binary form, so that it is not easy to understand or read."

The use of an obfuscator for obfuscation is an integral part of the code optimization & security of the source code.

What does the obfuscator do?

  • Reduces the code size
  • Removes unwanted code
  • Replaces large variable names with shorter ones
  • Changes the code such it will not be understood by a 3rd person

The most commonly used obfuscators for Java ME are listed in the following sections


Proguard It is available as opensource, Proguard is the widely used obfuscator for Java ME. ProGuard is a free Java class file shrinker, optimizer, and obfuscator. It removes unused classes, fields, methods, and attributes. It then optimizes the bytecode. It then renames the remaining classes, fields, and methods using short meaningless names.


Retroguard is a general purpose obfuscator for Java bytecode, designed to be integrated into your build and test process, providing security for your valuable Java applets and applications.


This page was last modified on 24 July 2013, at 10:48.
45 page views in the last 30 days.