最好的免费 Java .class 查看器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/202586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 11:18:48  来源:igfitidea点击:

Best free Java .class viewer?

javadecompiling

提问by matt b

I've used DJ Java Decompiler, which has a handy GUI, but it seems as if the latest version is only a trial and forces you to purchase the software after some period of days (I recall using an earlier free version about a year ago at a previous job).

我使用过DJ Java Decompiler,它有一个方便的 GUI,但似乎最新版本只是一个试用版,并迫使您在一段时间后购买该软件(我记得大约一年前使用了早期的免费版本在以前的工作中)。

I'm aware of Jad and Jadclipse, but what I loved about DJ Java Decompiler was that it integrated with Windows Explorer - so I could simply open up a JAR in something like WinRAR, navigate thru the packages, and double-click on a .class file to view it's decompiled source.

我知道 Jad 和 Jadclipse,但我喜欢 DJ Java Decompiler 的地方在于它与 Windows 资源管理器集成在一起——所以我可以简单地在 WinRAR 之类的东西中打开一个 JAR,浏览包,然后双击一个 . class 文件以查看它的反编译源。

Can anyone suggest other good, free, .class viewers? The criteria I have in mind for these would be:

任何人都可以推荐其他好的、免费的 .class 观众吗?我想到的标准是:

  • GUI-based
  • Integrates to Windows Explorer (so I don't have to run some command-line options like with JAD)
  • optional - can also show raw JVM bytecode commands
  • 基于图形用户界面
  • 集成到 Windows 资源管理器(所以我不必像 JAD 一样运行一些命令行选项)
  • 可选 - 还可以显示原始 JVM 字节码命令

In other words - I'd like to find the closest thing to .NET Reflectorfor Java as possible.

换句话说 - 我想尽可能地找到最接近.NET Reflectorfor Java 的东西。

采纳答案by johnstok

Eclipse will allow you to view the bytecode for classes, if the source is unavailable (search for 'disassembled bytecodes').

如果源不可用,Eclipse 将允许您查看类的字节码(搜索“反汇编的字节码”)。

It seems there is also a third-party plugin that uses asm here.

这似乎也有一个第三方插件,使用ASM这里

回答by Zorantula

There was another thread on StackOverflow which linked to http://java.decompiler.free.fr/

StackOverflow 上有另一个线程链接到http://java.decompiler.free.fr/

回答by dacracot

JarInspector

罐子检查员

Jar Inspector is an easy to use yet powerful jar file editor for Mac OS X. It allows you to effortlessly view, edit and decompile the contents of jar files.

Jar Inspector 是一个易于使用但功能强大的 Mac OS X jar 文件编辑器。它允许您毫不费力地查看、编辑和反编译 jar 文件的内容。

回答by ykaganovich

I use cavaj

我用卡瓦吉

I've used Decafe Pro(can't find the official site anymore) in the past, but the free version won't let you cut-n-paste.

我过去使用过Decafe Pro(再也找不到官方网站了),但免费版本不会让您剪切粘贴。

Both of them are front ends to JAD, so they have the same features and limitations with respect to decompilation capabilities.

它们都是 JAD 的前端,因此它们在反编译功能方面具有相同的特性和限制。

回答by Alex Miller

Many of these decompilers are based on Jad:

这些反编译器中有许多是基于 Jad 的:

I like the JadClipse Eclipse plugin:

我喜欢 JadClipse Eclipse 插件:

回答by Emmanuel Dupuy

JAD is one of the best Java Decompiler today. This is one brilliant piece of software. Nevertheless, the last JDK supported by JAD 1.5.8 (Apr 14, 2001) is JDK 1.3.

JAD 是当今最好的 Java 反编译器之一。这是一款出色的软件。尽管如此,JAD 1.5.8(2001 年 4 月 14 日)支持的最后一个 JDK 是 JDK 1.3。

DJ Java Decompiler, JadClipse, Cavaj and JarInspector are powered by Jad. The last version of Decafe Pro has been released on 2002-01-03.

DJ Java Decompiler、JadClipse、Cavaj 和 JarInspector 由 Jad 提供支持。Decafe Pro 的最新版本已于 2002-01-03 发布。

These viewers can not display Java 5 sources.

这些查看器无法显示 Java 5 源代码。

So, I use JD-GUI: logic, I'm the author :)

所以,我使用JD-GUI:逻辑,我是作者 :)

回答by Prabhu R

Try JDGUIsimple, lightweight and fast

试试JDGUI简单、轻量、快速

回答by Dinis Cruz

I just published a stand-alone Java Decompiler GUI (based on Jad) which you can get from Util Java Decompiler (JAD based) v1.0

我刚刚发布了一个独立的 Java Decompiler GUI(基于 Jad),您可以从 Util Java Decompiler (JAD based) v1.0 获得

This is a Windows based .NET 4.0 application, which supports the drag n'drop of *.jar files.

这是一个基于 Windows 的 .NET 4.0 应用程序,支持拖放 *.jar 文件。

It doesn't integrate with Window Explorer, but since this is based on a simple C# script, and the code is Open Source, maybe you could add that feature :)

它没有与 Window Explorer 集成,但由于它基于一个简单的 C# 脚本,并且代码是开源的,也许您可​​以添加该功能:)

Another idea would be to also add support for the other free java decompilers.

另一个想法是还添加对其他免费 Java 反编译器的支持。

回答by Happy

There is a free Java Class Viewer, we can check the Java .classfile binary data byte by byte interactively. When clicking each tree node of the classfile structure on the left, the corresponding byte data would be highlighted on the right.

有一个免费的Java Class Viewer,我们可以.class交互的逐字节查看Java文件的二进制数据。单击class左侧文件结构的每个树节点时,右侧会突出显示相应的字节数据。

Here is an articledescribes the source code of the Java Class Viewer in detail.

这里有一篇文章详细介绍了 Java Class Viewer 的源代码。

Java Class Viewer

Java 类查看器

回答by Seshadri Sastry

i use cavaj, simple to install and gives your very good overview of the class, eclipse style.

我使用 cavaj,安装简单,并且可以很好地概述类,eclipse 风格。