Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best free Java .class viewer? [closed]

Tags:

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).

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.

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

  • 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

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

like image 598
matt b Avatar asked Oct 14 '08 20:10

matt b


People also ask

How can I decompile a Java .class file?

class without source default to Class Decompiler Viewer . Now, click on the class or methods, press F3 , and the plugin will automatically decompile the Java class.

How do I read a .class file in Eclipse?

Clicking anywhere on the class name that we want to open and pressing F3. Clicking anywhere on the class name and going to the menu under Navigate > Open Declaration.


2 Answers

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.

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

These viewers can not display Java 5 sources.

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

like image 182
Emmanuel Dupuy Avatar answered Sep 27 '22 17:09

Emmanuel Dupuy


Procyon is a new open source decompiler that already beats JD-GUI in most cases. It's written in Java and comes in a self-contained jar. It is actively developed by StackOverflow's own Mike Strobel.

like image 41
Janus Troelsen Avatar answered Sep 27 '22 16:09

Janus Troelsen