This project would be deprecated, now this repo would be archived, the new Java Decompiler application would based on JTQDF.
- Python 3
use
py -3 java-decompiler.py -h
to show help docs.
Full Help:
usage: java-decompiler.py [-h] (-c | -w | -j | -f | -jf | -ndcp) -i INPUT -o OUTPUT [-T THREAD] [-cp] [-dp DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...]]
Java Decompile
options:
-h, --help show this help message and exit
-c, --Class Class input, decompile single class
-w, --war War input, decompile single war without lib jar decompilation
-j, --jar Jar input, decompile single jar
-f, --folder Folder input, would decompile all classes in the folder
-jf, --jar-folder Jar Folder input, would only decompile the jar which contains the specific package
-ndcp, --no-decompile-copy
Only copy the resources file, would not decompile
-i INPUT, --input INPUT
The input object, folder path or file name
-o OUTPUT, --output OUTPUT
The output src folder
-T THREAD, --thread THREAD
Decompile thread count
-cp, --copy Copy resources file(without class extension) to the destination, only work on -f/--folder
-dp DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...], --decompile-package DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...]
Specify the package name to be decompiled
py -3 java-decompiler.py -c -i test.class -o ./src
py -3 java-decompiler.py -j -i test.jar -o ./src
py -3 java-decompiler.py -f -i tomcat/webapps/ROOT -o ./src
-dp/--decompile-package
support*
to match any word
py -3 java-decompiler.py -jf -i tomcat/webapps/ROOT/WEB-INF/lib -o ./src -dp com.*.test
py -3 java-decompiler.py -jf -i tomcat/webapps/ROOT/BOOT-INF/lib -o ./src -dp com.testa com.testb
py -3 java-decompiler.py -w -i tomcat/webapps/app.war -o ./src