Make sure that the Java Bytecode Decompiler and Bytecode Viewer bundled plugins are enabled. For more information, refer to Install plugins.
IntelliJ IDEA features the Java bytecode decompiler that shows you compiled bytecode as if it were human-readable Java code. The decompiler is enabled by default.
Open a compiled .class file in the editor.
If it's the first time that you're opening a compiled file, the IDE prompts you to agree to the specified terms and conditions in the JetBrains Decompiler dialog. If you click Accept, the dialog will not be displayed in the future, and the appropriate code will be automatically decompiled.
tip
If you change your mind and want the JetBrains Decompiler dialog to appear again, disable the Java Bytecode Decompiler plugin in settings and open any compiled file in the editor.
After that the IDE will show you the human-readable Java code without actually converting .class files into .java files.
The yellow notification panel above the editor informs you that you’re reading a decompiled file.
Show bytecode for compiled files
By default, the IDE shows you decompiled code in compiled files. If necessary, you can open the bytecode viewer for any compiled class.
Open a compiled file in the editor and select View | Show Bytecode from the main menu.
The bytecode viewer provides basic syntax highlighting, and it shows the information in a way that is comfortable for reading.
tip
The decompiler can also debug your code, so you can use breakpoints anywhere in the decompiled code.
Thanks for your feedback!
Was this page helpful?
Cookie Settings
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.