JAD Lister Plugin (Java class file lister plugin)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
yann117
Junior Member
Junior Member
Posts: 4
Joined: 2004-12-30, 22:19 UTC
Location: France

JAD Lister Plugin (Java class file lister plugin)

Post by *yann117 »

As mentioned in the title, I wonder if someone could be able to make a lister plugin that would decompile a java class file using the jad exefile and show the result in the lister ?

Here would be the steps to follow:

1. select a .class file, call lister (F3)
2. jad the .class file
3. show in lister

I'm able to do this with class files that resides on regular filesystem, using an user action with a bat file, but the main goal would be to use the magical F3 key when navigating inside Java Archive (jar, ear, war files).

Unfortunately I'm a pure java dev ... and that would annoy me to re-learn C programming to write this kind of lister ... :(
User avatar
bdk
Junior Member
Junior Member
Posts: 34
Joined: 2006-11-24, 09:32 UTC

Post by *bdk »

I also would like this lister being developed. :)

What I have done as a workaround is to just add a directory shortcut to the TC's temp directory. If you associate the .class files to jad, executing the jad-command, actually ends up making jad files in the TC's temp dir. So I first execute the jad-command and the jump to the temp dir where I easily can find the newly decompiled file. Not the best solution, but it works reasonably well.

regards,
bdk
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

User avatar
bdk
Junior Member
Junior Member
Posts: 34
Joined: 2006-11-24, 09:32 UTC

Post by *bdk »

Very nice!!!
Thanks for the link.

regards,
bdk
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Overwriting JAVAs

Post by *Aleq »

It is a very handy plugin, however it does overwrite your JAVA sources, if you accidentaly click F3 on CLASS file in the same folder. This was very dangerous to me. So I've slightly modified the plugin, JAD output is now written to .jad, not to .java file.

Download HERE

Installation note - be careful about deleting JADDemo.class from the plugin folder otherwise your updated JAR might not be recognised. And also restart Total Commander.
User avatar
bdk
Junior Member
Junior Member
Posts: 34
Joined: 2006-11-24, 09:32 UTC

Post by *bdk »

Thanks for the update. However; this is not a problem for me as I never ever mix class files and java source files. :-) They always go in separate directories.
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Post by *Aleq »

You know, you do that once and you're in a big trouble. Esp. small projects have sometimes class & java files together.
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Post by *Aleq »

Only thing I miss now is a search feature :-(
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Srijith
New Member
New Member
Posts: 1
Joined: 2009-08-28, 03:57 UTC

Post by *Srijith »

Is there is any way to disable this plugin to read .java files. As I have other lister plugins which can display .java files.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Srijith wrote:Is there is any way to disable this plugin to read .java files. As I have other lister plugins which can display .java files.
You may disable plugin at all, if you don't need it. Also you may move it down (using special up and down buttons in Lister Plugins Dialog) in list so it will have less priority (move it below your another plugin that may show JAVA files too).
ivmai
New Member
New Member
Posts: 1
Joined: 2009-12-15, 13:27 UTC
Location: Moscow

Post by *ivmai »

To make class decompilation with Jad a bit better (including for Java 1.5+ classes), there exists a tool called JadRetro (hosted at sourceforge) which could be easily integrated into the plugin (just call jadretro <classfile> before calling jad).
esandrei
Junior Member
Junior Member
Posts: 8
Joined: 2012-04-09, 04:21 UTC

TC C++ Jad Plugin

Post by *esandrei »

Hi,

I wrote this TC Jad Lister plugin in C++ if someone is still interested.

It has some extra features like it doesn't overwrite the .java files and the displayed code is selectable and searchable and it is C++ fast.

Details how to download and install it here: http://ghisler.ch/board/viewtopic.php?p=248611#248611

Any feedback is welcomed :)
Post Reply