Mic*_*ers 73
如果您不介意阅读字节码,javap应该可以正常工作.它是标准JDK安装的一部分.
Usage: javap <options> <classes>...
where options include:
-c Disassemble the code
-classpath <pathlist> Specify where to find user class files
-extdirs <dirs> Override location of installed extensions
-help Print this usage message
-J<flag> Pass <flag> directly to the runtime system
-l Print line number and local variable tables
-public Show only public classes and members
-protected Show protected/public classes and members
-package Show package/protected/public classes
and members (default)
-private Show all classes and members
-s Print internal type signatures
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-verbose Print stack size, number of locals and args for methods
If verifying, print reasons for failure
Run Code Online (Sandbox Code Playgroud)
正如@MichaelMyers指出的那样,请使用
javap -c <name of java class file>
Run Code Online (Sandbox Code Playgroud)
获取JVM汇编代码。您也可以将输出重定向到文本文件以获得更好的可见性。
javap -c <name of java class file> > decompiled.txt
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
419357 次 |
| 最近记录: |