In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what Java decompilation tools have". In daily operation, I believe many people have doubts about what problems Java decompilation tools have. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "what Java decompilation tools have"! Next, please follow the small series to learn together!
JAD
Suppose we want to see the Graphics2D source code at line 42 in Eclipse:
Direct ctrl plus left key into the source code is invisible.
We can use an open source tool JAD to view the source code by decompiling it. About JAD wiki: https://en.wikipedia.org/wiki/JAD_(software)
Eclipse has a corresponding plug-in that can be downloaded from this link:
http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download
1. Depending on the version of Eclipse you are using, download the plug-in from the link above.
2. Download the decompiler's execution file depending on the type of operating system. On my Windows system I downloaded JAD.exe.
3. Place the JAD plug-in in Eclipse's plugins folder.
4. Place JAD.exe in the bin folder of the JRE directory.
5. Restart Eclipse and in the Windows->Preference->Java menu path you will see a new option JadClipse. Here we maintain the absolute path of JAD.exe placed in step 4 in the field "Path to decompiler".
6. Now select a class and press F3 to see the Java source code after JAD decompilation.
JD-GUI
Easy to use, window is an executable file.
Double-click jd.exe and drag the.class file you want to decompile into JD's window:
JD automatically decompiles and displays the source code:
Automatic download of source code for dependency packages via Maven
If your Java project manages its dependencies through Maven, it's easy to view the source code of the dependencies:
From the Download Sources right-click menu, you can automatically download the source code files of dependent packages.
For example, my Java project's pom.xml defines the dependency of cglib library:
After triggering the download of the source code file:
Go to my local repository and it's easy to find the source code file you just downloaded based on the package pathname or folder modification time.
At this point, the study of "What are Java decompilation tools" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 238
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.