Skip to content

Instantly share code, notes, and snippets.

@ShmuelMofrad
Created November 29, 2017 19:20
Show Gist options
  • Save ShmuelMofrad/93509a3ae177cec831f2e4eb8061c56e to your computer and use it in GitHub Desktop.
Save ShmuelMofrad/93509a3ae177cec831f2e4eb8061c56e to your computer and use it in GitHub Desktop.
Javap - Disassembles class files.

Javap - Disassembles class files.

path: [jdk-path] / bin

$ javap -help
 
Usage: javap <options> <classes>
 
where possible options include:
 
  -help  --help  -?        Print this usage message
  -version                 Version information
  -v  -verbose             Print additional information
  -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)
  -p  -private             Show all classes and members
  -c                       Disassemble the code
  -s                       Print internal type signatures
  -sysinfo                 Show system info (path, size, date, MD5 hash)
                           of class being processed
  -constants               Show 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
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment