Stats

83 Contributors: 2 Friday, October 21, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap
Download eBook

Disassembling and Decompiling

Download java eBook

Syntax

  • javap [options] <classes>

Parameters

NameDescription
<classes>List of classes to disassemble. Can be in either package1.package2.Classname format, or package1/package2/Classname format. Do not include the .class extension.
-help, --help, -?Print this usage message
-versionVersion information
-v, -verbosePrint additional information
-lPrint line number and local variable tables
-publicShow only public classes and members
-protectedShow protected/public classes and members
-packageShow package/protected/public classes and members (default)
-p, -privateShow all classes and members
-cDisassemble the code
-sPrint internal type signatures
-sysinfoShow system info (path, size, date, MD5 hash) of class being processed
-constantsShow final constants
-classpath <path>Specify where to find user class files
-cp <path>Specify where to find user class files
-bootclasspath <path>Override location of bootstrap class files

Related Examples