CFR vs JD-GUI
CFR
benf.orgJD-GUI
java-decompiler.github.ioSide by side
| Figure | CFR | JD-GUI |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | — |
| Plans published | 1 | 1 |
| Spec score · Decompiler Software | 8.3 (#5) | 7.6 (#14) |
| License | The maker’s FAQ directs users to the project README for its license; the project repository identifies the license as MIT. | JD-GUI is an open-source project released under the GPLv3 License. |
| Purpose | CFR is a Java decompiler that converts Java class files back into Java source. | JD-GUI displays reconstructed Java source code from .class files and lets users browse methods and fields. |
| Support | The maker invites users to email reports of problems and directs bug reports to the GitHub issue tracker. | The site links to GitHub issues for JD-GUI. |
Plans
In their own words
CFR
CFR is a free Java decompiler that reconstructs Java source from Java class files. It can process individual named classes, classes found on a classpath, or a whole JAR, and the command-line tool can place output in a chosen directory with the --outputdir option. Decompilation behavior can be adjusted through command-line options or an options file. The maker says CFR handles many features from Java 9, 12, and 14, and it can attempt class files from other JVM languages; those are rendered as Java rather than their original language. CFR is written in Java 6 and is said to run wherever Java 6 does. It is available as a downloadable JAR, through Maven, and from GitHub. The FAQ notes an API from version 0.135, and the project repository identifies the license as MIT. CFR handles bytecode rather than native code. Its maker also notes that some inputs fall into edge cases where output may be poor. There are no paid plans or usage limits stated.
JD-GUI
JD-GUI is a free, open-source graphical utility that reconstructs Java source from compiled CLASS files. Its color-coded display lets users browse methods and fields, inspect classes, and navigate Java module hierarchies. It supports CLASS, JAR, WAR, EAR, AAR, KAR, JMOD, and ZIP files. For stack-trace investigation, users can drop in LOG files; JD-GUI decompiles referenced classes and shows the source line associated with the trace. The project describes its tools as intended for decompiling and analyzing Java 5 bytecode and later versions. JD-GUI is written in Java and released under the GPLv3 License. It supports bytecode decompilation, not native-code decompilation. Releases are listed for Linux, macOS, and Windows as a JAR, RPM, DEB, macOS TAR, and Windows ZIP. The related JD-Eclipse product is an Eclipse plug-in for displaying Java sources during debugging. The site links to GitHub issues for support and notes that the JD-Eclipse plug-in is unsigned.