C H A P T E R 6 |
Installing the ProGuard Obfuscator |
This chapter describes how to install the ProGuard obfuscator.
The IDE installer installs the RetroGuard obfuscator as the default obfuscator, and includes support for the ProGuard obfuscator. To use the ProGuard obfuscator, you need to download the executable and add it to the IDE.
These instructions assume you have either installed the Sun Java Studio Mobility 6 IDE or added the Sun Java Studio Mobility 6 ProGuard obfuscator module to your installation of Sun Java Studio Enterprise 6.
1. Download the ProGuard obfuscator (proguard2.0.1.tar.gz or proguard2.0.1.zip) from http://proguard.sourceforge.net.
2. Untar or unzip the file into a directory on your system.
3. Choose Tools > Obfuscators.
The Obfuscator Registry dialog opens.
4. In the left pane of the dialog, select the ProGuard obfuscator node.
The Property sheet for the obfuscator is displayed in the left pane of the dialog.
5. Click the Expert tab, then click on the ellipsis (...) button for the Executable Path property.
6. Use the File Chooser window to navigate to the JAR file for the obfuscator (for example, proguard.jar) and click OK.
The path to the JAR file is shown in the property sheet.
7. Optionally, set ProGuard to be the default obfuscator by clicking the Set As Default button.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.