/jd-intellij

CURRENTLY NOT MAINTAINED || Plugin that brought a decompiler in IntelliJ.

Primary LanguageJava

JD-IntelliJ

JD-IntelliJ is a plug-in for IntelliJ IDEA, initiated by Brice Dutheil. It uses the Java Decompiler binaries It allows you to display all the Java sources during your debugging process, even if you do not have them all. Currently, the project is under development. The Java sources are hosted on Bitbucket.

Your contributions are welcome.

Also note that it is possible to decompile jars/classes with JD-GUI (can be found on the official site).

Warning

This plugin is currently partly maintained, due to lack of time and the availability of a decompiler within IntelliJ IDEA itself (even the community version).

Notes

It is the official Java Decompiler plugin for IntelliJ IDEA. The plugin should work from IntelliJ IDEA 2018.3.x to the latest stable version .

Last but not the least, all the credit for decompilation stuff must go to Emmanuel Dupuy, who is the author of Java Decompiler.

Screenshots

JD-IntelliJ in action

Installation

From the JetBrains repository

The plugin is deployed on the publin JetBrains IntelliJ repository, to install it go to the Settings dialog window > Plugins pane > Browse Repositories dialog window, then search for Java Decompiler.

From the zip archive

It is also possible to install JD-IntelliJ from a file (if compiled from the source), to the Settings dialog window > Plugins pane > Install Plugin from disk…

Don’t download from Gihub! The Github link is the zipped git repository, not the actual plugin. You can find the latest version on the IntelliJ IDEA plugin site.

Development

First steps

Note that the source code is compiled against the IntelliJ 11 API, the JetBrains introduced a few backward incompatible changes in later versions that would require changes and incompatibilities for earlier verison of IntelliJ. In order to maintain this compitibility for the time being the plugin will still be compiled against IntelliJ 2019.2 (which can be found here).

  1. Clone from github

  2. Import it on IntelliJ IDEA from the build.gradle project descriptor

  3. Run the new configuration

Building it

So, to create the plugin zip archive (with the custom repository file) in the deploy folder, enter the following at root of the project :

./gradlew buildPlugin
# Version of the plugin
version=0.7.1

# Base URL where the plugin ZIP file will be deployed
plugin.deploy.url=https://arkey.fr/jd-intellij
Interesting IntelliJ Plugin development links

For development purpose, you can take a look here :