JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR)

JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR), a VS Code extension by Zovo

Open a .jar, .war, .ear, .aar or .class file in VS Code and see what is inside: packages, classes, resources and MANIFEST.MF, the Java version of every class, a javap-style bytecode listing and decompiled Java source. Decompiling uses the bundled CFR decompiler and the Java runtime already on your computer. Read-only, no network.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-jar-viewer, version 0.1.2.

JAR viewer: the packages of a JAR on the left, the decompiled Java source of a class on the right

Questions people ask

Is JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR) free?

Yes. JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR) is free and MIT licensed.

How do I install JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR)?

Click "Install in VS Code" above, or search for zovo.zovo-jar-viewer in the Extensions view.

What you see

Bytecode view: a javap-style listing of a method with a tableswitch

Open a file

Decompiling needs Java

CFR is a Java program, so decompiled source needs a Java runtime, version 8 or newer. The viewer looks for one in this order:

  1. the setting jarViewer.javaPath (a java binary or a JDK/JRE folder),
  2. JAVA_HOME,
  3. java on your PATH.

Without Java, every other view works and the Java source tab shows one line on how to turn decompiling on. Nothing pops up. The command JAR Viewer: Check the Java runtime used for decompiling shows which Java is used.

CFR runs in its own process with a 45-second limit and a 512 MB memory cap. CFR gets the classes of the open JAR as one temporary file in the extension's storage folder, so the other classes of the JAR resolve; the file is deleted when you close the editor. Only one CFR process runs per editor at a time.

Free and Pro

Everything above is free, with no limit and no sign-in. Three Zovo Pro tools save time on bigger jobs. Each has 3 free tries on your computer, and a try counts only when the tool gives you a result.

ToolFreeZovo Pro
Packages, classes, resources, manifest, Java versions, bytecode, decompiled source, nested JARsyesyes
Export the decompiled sources of a whole JAR into a folder of .java files, with progress and Cancel3 triesyes
Compare two JARs: classes added, removed and changed, method and field signatures, Java version changes, as a Markdown report3 triesyes
Find a class, method, field or string constant in every JAR of a folder, nested JARs included (plain text or /regex/)3 triesyes

Zovo Pro is USD 19 once and turns on the Pro tools in every Zovo extension. Nothing about Pro shows when you open a file; it only comes up when you click one of the three tools. To hide the buttons, set jarViewer.showProTools to false.

Compare two versions of a JAR: classes added and removed, and the methods that changed

Safe with any file

Commands

CommandWhat it does
JAR Viewer: Open in JAR ViewerOpen a JAR, WAR, EAR, AAR or class file
JAR Viewer: Open a sample JARA small sample to try the viewer
JAR Viewer: Check the Java runtime used for decompilingShows the Java that CFR runs on
JAR Viewer: Export decompiled sources of a JAR (Pro)A folder of .java files
JAR Viewer: Compare two JARs (Pro)What changed between two versions
JAR Viewer: Find a class, method or string in every JAR of a folder (Pro)Search many JARs at once

Settings

SettingDefault
jarViewer.javaPathemptyJava runtime for CFR: a java binary or a JDK folder
jarViewer.showProToolstrueShow the Export sources, Compare and Find in folder buttons
jarViewer.showSupportLinkstrueShow the small links at the bottom of the viewer
jarViewer.askForRatingtrueAsk once, after a few days, whether you want to rate it

Limits

Works in VS Code 1.90 and later, Cursor, Windsurf and VSCodium.

CFR is made by Lee Benfield and ships under the MIT license; see THIRD-PARTY-NOTICES.md.

Install JAR Viewer & Java Decompiler (Class File Viewer, Bytecode, CFR)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zovo-jar-viewer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-jar-viewer, version 0.1.2.

Source code and issues are on GitHub.

All our VS Code extensions

Zovo Pro and support

Zovo Pro: USD 19 once, every Zovo viewer. It turns on the Pro tools in this extension and in the other Zovo extensions you use. The free features stay free.

After a card payment your license key shows on the next page. Paste it with the command "Zovo Pro: Enter a key".

You can also support the work with no Pro:

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.