下载安装
下载网址:https://varaneckas.com/jad/
解压压缩包并把文件夹名称改为jad
配置环境变量
打开CMD测试
使用
编写测试代码
package interview;
public class TestJad {
public static void print(String firstName, String lastName) {
String fullName = firstName + lastName;
System.out.println(fullName);
}
public static void main(String[] args) {
print("ss","m");
}
}
运行代码得到TestJad.class
文件,打开cmd执行命令:jad .\TestJad.class
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: TestJad.java
package interview;
import java.io.PrintStream;
public class TestJad
{
public TestJad()
{
}
public static void print(String firstName, String lastName)
{
String fullName = (new StringBuilder()).append(firstName).append(lastName).toString();
System.out.println(fullName);
}
public static void main(String args[])
{
print("ss", "m");
}
}