Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top