How to use Retroguard (transfer)

zhaozj2021-02-16  84

Retroguard is a very nice Java obfuscator, and this obfuscator has been taken in the Enterprise Edition of JBuilder7. Retroguard itself is a Java program (a JAR package), so you must install JDK first. You need to set some environment variables before running, in addition to the execution path to the Java in Path, add D: /Retroguard/Retroguard.jar in ClassPath (assuming your retroguard.jar under D: / Retroguard). If you don't set ClassPath, don't matter, just add the path parameters through -classpath every time you run. When you set up a good running environment, you have to prepare you to confuse .jar files, as for how to pack compiled classes into. JAR files are not here. Retroguard's execution format is: Java Retroguard [Enter JAR File [Output JAR File ["Reserved Scripting File" [Log File]] where "Reserved Script File" describes those classes, functions, and variable names must be retained, can not be confused; log The file is the recorded file generated after execution, the recorded error, confusion, and other information. For the "reservation script file" can be set by a graphical interface RGGUI, after the Java RGGUI runs, you can select the JAR file according to the prompt, select the class, function, variable, and automatically generate "retention script after completion of the class, function," file". In fact, it is usually usually necessary to keep the starting class name. If your JAR package uses a third-party function library, such as Siemens's API, then specify in the -classpath parameter. For example: java -classpath c: /siemens/smtk/6688i1_b8/lib/api.jar RETROGUARD in. Jar out.jar script.txt log.txt If retroguard confusion fails, you can view the log file to get an error message. Here I found a question, I have encountered a file like ... $$ 1.Class, Retroguard will prompt an error, and then I have modified his source code and directly skipped the processing of this file. JBuilder7 sets and usage: JBuilder7's Enterprise Edition with RetRoguard V1.1, retroguard-v1.1 in the JBuilder7 installation path. Retroguard can be called directly in JBuilder7. The way the settings are as follows: Point menu Tools -> configure obfuscators Configure the obfuscator, the new ... New ... Newly built a copy, select the RETROGUARD path, complete the configuration. Use the Archive Builder, click Menu Wizards -> Archive Builder ..., Archive Type Select MIDlet (here only introduction to J2ME app), then set up to step by step according to prompts, reaching step 9 is the obfuscator setting At the time, select Obfuscate The Contents of the Archive, Obfuscator Select Objector, Use The Classes Specified Blow Add to be reserved class (default reserved start execution class), end the setting. This will automatically generate a confusing JAR file package when compiling each time.

转载请注明原文地址:https://www.9cbs.com/read-14907.html

New Post(0)