java:javadecompiler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:javadecompiler [2015/04/14 08:46] – [Decompiler with jad tool] admin | java:javadecompiler [2015/11/06 07:21] (current) – removed admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Java Decompiler ====== | ||
- | Some tools: | ||
- | ===== java decompiler for eclipse ===== | ||
- | ==== download and install ==== | ||
- | * refer: http:// | ||
- | * install: http:// | ||
- | ==== config and using ==== | ||
- | There is one more important step pending: | ||
- | - Step1: In your eclipse application go to **Windows > Preferences** | ||
- | - Step2: **General > Editors > File Associations** | ||
- | - Step3: Click **Add for Associated Editors** | ||
- | * Select *.class and add Class File Editor and make it default. | ||
- | * Select *.class without source and add Class File Editor and make it default. | ||
- | Now you can open your code and you should be able to decompile any of your jar files by either Ctrl + Clicking on the code base or via your Package Explorer. | ||
- | ===== DJ Decompiler and jad tool ===== | ||
- | DJ Decompiler using jad tool for decompiling class of java | ||
- | ==== Decompiler with DJ Decompiler(GUI) ==== | ||
- | ==== Decompiler with jad tool ==== | ||
- | refer: http:// | ||
- | Before run jad tool, we add path **d: | ||
- | Favorite command:< | ||
- | set PATH=%PATH%; | ||
- | jad -o -r -sjava -dsrc classes/ | ||
- | </ | ||
- | === decompiler single .class file === | ||
- | <code bash> | ||
- | jad abc.class | ||
- | </ | ||
- | === decompiler all .class files === | ||
- | <code bash> | ||
- | jad *.class | ||
- | </ | ||
- | === change output file extension === | ||
- | <code bash> | ||
- | jad -sjava * | ||
- | </ | ||
- | === change output directory source === | ||
- | <code bash> | ||
- | jad -o -dtest -sjava *.class | ||
- | </ | ||
- | === decompile the whole tree of JAVA classes === | ||
- | Below are structure | ||
- | * directory **classes** contain all file .class | ||
- | * directory **src** will contain all java which we decompile | ||
- | So we will run below command for decompiling all **.class file** in directory **classes** to **src** | ||
- | <code bash> | ||
- | jad -o -r -sjava -dsrc classes/ | ||
- | </ |
java/javadecompiler.1429001216.txt.gz · Last modified: 2022/10/29 16:15 (external edit)