How can I decompile several cans at once?

Well, I think the topic says it all :)

The ideal solution will find all the banks in a specific folder (they can be in subfolders) and write all the sources found in the same "src" directory, of course, supporting the package folders.

Case of concrete use: decompile all banners of the Eclipse plugin

+4
source share
5 answers

Download the JAD Decompiler .

  • Undo all your jar files (using the jar xvf ) in some directory. Let me call it ${unjar.dir} .

  • Create a JAD directory to write decompiled sources. Let me call it ${target.dir} .

  • Run the following command:

  jad -o -r -sjava -d${target.dir} ${unjar.dir}/**/*.class 

:

 -o - overwrite output files without confirmation -r - restore package directory structure -s <ext> - output file extension (default: .jad) 
+21
source

Decompile eclipse plugins ??

In addition to having a technical solution - (1) you can get all the source files for the (official) eclipse plug-ins in the form of packages and (2) do not expect that the results of the decompiler will be compiled or can be used to debug the code.

So, if you want to study the source of the eclipse and its plugins, decompilation is ... let's say ... not a good idea.

+1
source

I wrote code-collection tool names using shell script and cfr to find and decompile all jar , war once.

After decompiling jar, war files, you can use my tool to search and copy all specific files ( .js , .html for example) to a new directory.

enter image description here

Visit my project at: code-collection

+1
source

For this, the equivalent command for Windows would be:

 jad -o -r -sjava -d "target.dir" "unjar.dir/**/*.class" 
0
source

Source: https://habr.com/ru/post/1336963/


All Articles