環境
- 系統:Debian 10
- java版本:jdk-11/jdk-8
下載CFR
要轉換文件,我們需要一個反編譯器。使用CFT 反編譯器,它可靠且易於使用,幾乎支持所有JDK版本。
wget https://www.benf.org/other/cfr/cfr-0.144.jar
該網站的cfr的最新版本為0.155
使用
java -jar cfr-0.144.jar your_class.class > out.java
參考
[1]https://linuxh2o.com/how-to-decompile-a-class-file-into-a-java-file