aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Decompiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Decompiler" Watch "Decompiler" New topic
Author

Decompiler

Dmitry Melnik
Ranch Hand

Joined: Dec 18, 2003
Posts: 328
Guys, which free decompiler(s) could you recommend? For occasional use with very small amount of code to be decompiled.
Donny Nadolny
Ranch Hand

Joined: Mar 05, 2003
Posts: 32
I would have to suggest DJ Java Decompiler (http://members.fortunecity.com/neshkov/dj.html). I have never encountered code which it cannot decompile. Plus, it's written in c++ (I think) and it is very fast. I dont think it needs the SDK or even the RTE for that matter.
However, I have encountered code which it generates uncompilable code for (only code run through an obfuscator first) because some of them obfuscate and add in labels which screw up the compiler. Hope this helps.


- Donny Nadolny<br />The pen is mightier than the sword, and considerably easier to write with.
Dmitry Melnik
Ranch Hand

Joined: Dec 18, 2003
Posts: 328
Thanks a lot Donny. I have found out that DJ Java Decompiler is a GUI wrapper around another command-line decompiler -- Jad http://kpdus.tripod.com/jad.html Please correct me if I am wrong but the latest available release of Jad is dated July 2001, which means JDK 1.3, right?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
That's my understanding. So Jad and DJ can't handle classes compiled with -target 1.4 for example. Asserts are unknown. (And in 1.5, quite a few other things are unknown.) You can sometimes get Jad to handle a more modern file by altering the header so it seems to have been compiled for 1.3 instead, but I don't know how robust this techniqe is. (I wouldn't expect it to be very reliable.) I'm not aware of any more modern decompilers, especialy not free or shareware. If anyone knows of any, I'd be interested too.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Decompiler