Tutorial on using java decompilation tool
1. Download the java decompilation tool software and install it
2. Double-click to open. The interface after opening is as shown below. Is it clear at a glance? The interface is very simple. Although it is in English, it will not be a problem for everyone.
3. Open the class file you want to decompile through file-》open file
4. Open it and you will immediately see the java code you are familiar with. Simple right?
Java decompilation tool FAQ
1. What is JD-GUI?
1JD-GUI is a stand-alone graphical utility that displays the Java source code of ".class" files. You can browse the rebuilt source code using the JD-GUI for instant access to methods and fields.
2. Isn’t it unsafe if the program can be decompiled?
1. Technologies such as code obfuscation can be used to increase the difficulty of decompilation and reduce the readability of decompiled code, but it is impossible to completely avoid decompilation.
3. What is the principle of java decompilation tool?
Since languages based on virtual machine technology such as Java and .net all use the binary structure of ByteCode, it is easy to convert ByteCode into an "abstract syntax tree" (AST for short, a concept in the course "Compilation Principles"). Then use a decompiler to convert the AST into code.
Java decompilation tool update log
1. Fixed the recognition error of ".class" expression.
2. Fixed the error in identifying the "switch enumeration" command.
3. Replace the value with a known numeric constant (such as Long.MAX_VALUE).
4. Removed unnecessary "java.lang" prefix.
5. Fixed the recognition error of try-cacht statements containing ternary operators in the last position.
6. Added conversion instructions for returned general variables.
7. Hide the synthetic fields of anonymous classes.
8. Internally, improved JD-Core memory management (complex smart pointers C++11 replaced by basic but very efficient memory pools)
it works
it works
it works