views:

2898

answers:

7

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.

+3  A: 

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

Zorantula
this works well, thanks.
matt b
A: 

JarInspector

dacracot
Looks cool but sadly I don't have a Mac.
matt b
No worries, like most such apps, Jar Inspector uses jad under the covers. JD-GUI is a great alternative.
Quinn Taylor
+1  A: 

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

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

johnstok
The way I read it, he wants to see decompiled Java source code, not bytecode.
Michael Borgwardt
Check out JD-GUI -- it appears to be the state of the art in decompilation right now for Java: http://java.decompiler.free.fr/?q=jdgui
Drew Noakes
+1  A: 

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.

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

ykaganovich
A: 

Many of these decompilers are based on Jad:

I like the JadClipse Eclipse plugin:

Alex Miller
+11  A: 

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

Emmanuel Dupuy
Congratulations, JD-GUI worked great for me when I lost my laptop and needed some sources back in a hurry. The only thing it didn't do perfectly was the for (Thing thing : things) { loop.
Marcus Downing
JD-GUI needs a Mac version, a command line version and JadClipse integration, though... An open source licence would be great as well :)
neu242
A: 

Try JDGUI simple, lightweight and fast

Ram