Menu
Jul 14, 2020. It is an offline Java decompiler tool which stands out among the rest of the similar apps. JD-GUI is a small but efficient Mac app that can deal with “.class” Java files. Getting started with JD-GUI is extremely straightforward: once you mount the downloaded DMG, copy the app to your.
What is Java Decompiler ?
Java decompiler converts .class file into java source code. In other words, decompiler converts bytecode into readable .java format.You can use java decompiler to look into the code of predefined java classes like HashMap, HashSet , ArrayList etc. You can find out how Sun/Oracle java developers wrote the java classes which are currently used by billion of devices in the world.Java source code from which the .class file has been generated will not exactly match the java source code generated from the java decompiler. But most of the code will be same.
Dj Java Decompiler
Read Also : Java 8 Features
After installing java, you can find the predefined java classes in the rt.jar inside JRE folder. Unzip rt.jar and all the predefined java classes will be present in the bytecode(.class) format. By using java decompiler, I have written the articles how HashMap works in java, how HashSet works in java. So let's find out best java decompilers which I have used and now I am recommending it to you.
Best Java Decompilers
1. JDProject
JDProject is one of the most frequently used java decompiler offline.It is developed to decompile java 5 or later versions(as of now till java8). It is available for Windows, Mac OS and Linux. It is a best decompiler for eclipse and intellij too as it provides plugin for each platform. JD-Eclipse is a plug-in for the Eclipse platform while JD-Intellij is a plug-in for Intellij IDEA.
You can download JDProject java decompiler from here
2. Procyon
Linux Java Decompiler
Procyon is a java decompiler developed by Mike Strobel. Procyon decompiler handles java language enhancements from jdk 1.5 and beyond that most other decompilers don't. Procyon does well with enum declarations, annotations and java 8 lambdas and method references. You can find the wiki here comparing Original code, Procyon decompiler code and JD decompiler code. Although wiki above makes Procyon looks good, but I still prefer JDProject over Procyon. Procyon is relatively new and still work in progress.Java Decompiler Download For Windows 10
3. Cavaj Java DecompilerIf you are a Windows user, then Cavaj is a good option as a decompiler. It is simple to use and decompiles nearly any java class file. The main drawback of Cavaj is that it lacks syntax highlighting.
Also, it is not available for Mac or Linux OS. In short, it is a freeware standalone windows application which converts bytecode(.class) files to java source code.
4. DJ Java Decompiler
DJ Java Decompiler is yet another standalone windows application. It is available for Windows XP, Windows 2003, Windows Vista, Windows 7, Windows 8, 8.1 and 10. You don't need to have the JVM (Java Virtual Machine) or any other java JDK installed. The main advantage of DJ Java Decompiler is that you can decompile more than one java class file at one time. DJ Decompiler enables users to users to save, print, edit and compile the generated java code.
5. JBVD
JBVD stands for java bytecode viewer and decompiler. It is based on the javassist open source library. It is only available for Windows OS. JBVD requires java to be installed on your device to work.
6. AndroChef
AndroChef is also a windows based java decompiler application. With AndroChef Java Decompiler you can decompile apk., dex, jar and java class-files. It's simple and easy. AndroidChef supports Windows XP, Windows 2003, Windows Vista, Windows 7, Windows 8, 8.1 and 10. AndroChef successfully decompiles java6, java 7 and java 8 .jar and .class files.
CFR stands for Class File Reader. It is completely written in java 6. It supports latest features of java8 like lambdas while decompiling. You do not need to worry if you are using java 8. The only drawback of this decompiler is that it is not an open source program. Although, it has a command line tool which is ideal in making the decompiling process efficient and faster.
8. Fernflower
Fernflower is an analytical decompiler for java. It is used to decompile class, zip and jar file extensions. It is still under development.
Conclusion
There are many options available for java decompiler. If you have MacOS ,Linux OS or looking for eclipse,intellij plugin then go for JDProject. For Windows OS there are many options available like DJ decompiler, JBVD, AndroChef, Cavaj, JDProject. Please mention in the comments if you come across any java decompiler which is not mention in the above list. Thats all, I have shared the 8 best java decompilers for java developers.The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.
JD-Core is a library that reconstructs Java source code from one or more “.class” files. JD-Core may be used to recover lost source code and explore the source of Java runtime libraries. New features of Java 5, such as annotations, generics or type “enum”, are supported. JD-GUI and JD-Eclipse include JD-Core library.
JD-Core, JD-GUI & JD-Eclipse are open source projects released under the GPLv3 License.
- JD-Core and JD-GUI are written in Java.
- JD-Core works with most current compilers including the following:
- JDK 1.1.8, JDK 1.3.1, JDK 1.4.2, JDK 1.5.0, JDK 1.6.0, JDK 1.7.0, JDK 1.8.0, JDK 9.0.1, JDK 10.0.2
- jrockit90_150_06
- jikes-1.22
- harmony-jdk-r533500
- Eclipse Java Compiler v_677_R32x, 3.2.1 release
- JD-GUI supports Drag and Drop.
- JD-GUI supports CLASS, JAR, WAR, EAR, AAR, KAR, JMOD & ZIP files.
- JD-GUI displays color coded Java source code.
- JD-GUI allows you to browse the CLASS files and Java modules hierarchy.
- JD-GUI lets you drag and drop LOG files, decompile CLASS files, and display the line of code that appears in Java stack traces.
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.
![Free Free](https://www.hdfstutorial.com/wp-content/uploads/2019/01/JD-Project.png)
Releases
- Size : 3.09 MB
- Size : 1.41 MB
Release details & Old releases
Issues
![Jar decompiler java Jar decompiler java](https://dj-java-decompiler.windows10compatible.com/media/screenshots/2001_screen.gif)
Donations
Did JD-GUI help you to solve a critical situation? Do you use JD-Eclipse daily? What about making a donation?
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.
Release
- Size : 594 KB
Installation
- Download JD-Eclipse ZIP file,
- Launch Eclipse,
- Click on 'Help > Install New Software...',
- Drag and drop ZIP file on dialog windows,
- Check 'Java Decompiler Eclipse Plug-in',
- Click on 'Next' and 'Finish' buttons,
- A warning dialog windows appear because 'org.jd.ide.eclipse.plugin_x.y.z.jar' is not signed. Click on 'Install anyway' button.
Release details & Old releases
Issues
Donations
Did JD-GUI help you to solve a critical situation? Do you use JD-Eclipse daily? What about making a donation?