This package enables the automatic disassembly of Java bytecode inside Emacs buffers. It was inspired by a blog post of Christopher Wellons.
Disassembly can happen in two cases:
- when opening a Java .class file
- when extracting a .class file inside a jar
In any case, javap
must be installed in the system for this
extension to have any effect, since that is the tool that actually
performs the disassembly.
You can install this package using the package.el
built-in package
manager in Emacs. It is available on MELPA and
MELPA Stable repos.
If you have these enabled, simply run:
M-x package-install [RET] autodisass-java-bytecode [RET]
Alternatively, you can save
this .el file to a directory in your
load-path, and add the following to your .emacs
:
(require 'autodisass-java-bytecode)