4

I am looking to decompile either a complete .jar file or simply .class files.

I have been googleing around for about an hour now and havnt seem to find any tools to help me.

Most of the tools i found was either outdated or did not work.

I also found this post from stackoverflow but sadly all of the programs suggested can either not be downloaded or is out dated.

Community
  • 1
  • 1
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
  • 2
    `Jad Gui` - Neither outdated and it can be downloaded from here: https://code.google.com/p/innlab/downloads/detail?name=jd-gui-0.3.3.windows.zip&can=2&q= – Branislav Lazic Oct 03 '13 at 16:49
  • Did you see this thread ? http://stackoverflow.com/questions/7753070/any-open-source-java-decompiler-for-windows-7 – nha Oct 03 '13 at 17:23

2 Answers2

5

Well you have many alternatives: http://www.showmycode.com/ .

In practice, I have found JAD to be closely precise. JD-GUI is again quite good with eclipse like code viewer.


Edit (2015): Fernflower has picked up quite some hype over last couple of years. Personally I find it to be the best. IntelliJ uses it as default from Idea13 onwards (This speaks volumes as intellij is considered cutting edge as per tooling in java world is concerned). Easiest way to use fernflower would be to drag drop .class files on intellij. In case you wish to use it from command line, then this might help.

Jatin
  • 31,116
  • 15
  • 98
  • 163
1

.jar files are just .zip files with some specific metadata files (META-INF/MANIFEST.MF), so they can be opened with any unzip program. (see http://en.wikipedia.org/wiki/JAR_%28file_format%29 for more info)

for the .class files therein, see this other question: How do I "decompile" Java class files?

Community
  • 1
  • 1
Rob Starling
  • 3,868
  • 3
  • 23
  • 40
  • oops. i didn't see that he had referenced the other SO post. still, it's worth looking at, as some answers *do* claim to be applicable to java 1.7 – Rob Starling Oct 03 '13 at 16:58