The purpose of obfuscation is to make reverse engineering of the code difficult. Classes, methods, interfaces, and variable names are renamed in a meaningless shorter form. This reduces the size of the classes and thus making the JAR file smaller. It is therefore always recommended to obfuscate your code.

An easy to use obfuscator is RetroGuard. RetroGuard is free software, distributed under the Lesser GNU Public License, which means it is distributed at no charge for commercial or non-commercial use.

The latest RetroGuard version can be downloaded from:

Quick guides

Installing Retroguard 1.1 with J2ME Wireless Toolkit 1.0.4

RetroGuard can be used standalone but it can also be integrated with the J2ME Wireless Toolkit 1.0.4.

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
J2ME Wireless Toolkit 1.0.4

  1. Download and unzip

  2. Copy ..\retroguard-v1.1\retroguard.jar in the J2ME wireless toolkit bin directory: <WTK104>/bin/retroguard.jar

  3. To create an obfuscate package in the wireless toolkit, select: Project | Package | Create Obfuscated Package