1.File->Settings:
2.配置Program:
或者:
3.配置Arguments:
-v 会输出更多信息
4.配置Working dicectory:
5.使用:
注意:javap.exe反编译的是class文件,因此得先确保有class文件,最粗暴的方法就是main跑一下
Compiled from "SyncDmk.java"
public class com.cjian.synchroniezd.SyncDmk {
public int i;
public com.cjian.synchroniezd.SyncDmk();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: aload_0
5: iconst_0
6: putfield #2 // Field i:I
9: return
public void test();
Code:
0: aload_0
1: dup
2: astore_1
3: monitorenter
4: aload_0
5: dup
6: getfield #2 // Field i:I
9: iconst_1
10: iadd
11: putfield #2 // Field i:I
14: aload_1
15: monitorexit
16: goto 24
19: astore_2
20: aload_1
21: monitorexit
22: aload_2
23: athrow
24: return
Exception table:
from to target type
4 16 19 any
19 22 19 any
public static void main(java.lang.String[]);
Code:
0: return
}