'javap' - Java Disassembler Command and Options

This section describes what are the commonly used command line options for the Java bytecode class disassembler - 'javap' tool.

"javap": A command line tool that reads Java bytecode class files and disassembles them. "javap" is distributed as part of the Sun JDK package and represented by the \progra~1\java\jdk1.8.0\bin\javap.exe program file. It has the following syntax:

javap [options] classnames

where "options" is a list of options and "classnames" is a list of Java class names.

If you want to see the complete list of all options, you can run the "javap" command with the "-help" option:

C:\herong>\progra~1\java\jdk1.8.0\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 static 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

Last update: 2015.

Table of Contents

 About This Book

 Java Tools Terminology

 Installing Java 8 on Windows

 'javac' - The Java Program Compiler

 'java' - The Java Program Launcher

 'jdb' - The Java Debugger

 'jconsole' - Java Monitoring and Management Console

 'jstat' - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jvisualvm (Java VisualVM) - JVM Visual Tool

 'jar' - The JAR File Tool

'javap' - The Java Class File Disassembler

'javap' - Java Disassembler Command and Options

 Listing Public Variables and Methods with 'javap'

 Listing Private Variables and Methods with 'javap -private'

 Disassembling Java Bytecode Class Files with 'javap -c -private'

 Looking Up Method Signature with 'javap' Command

 'keytool' - Public Key Certificate Tool

 'native2ascii' - Native-to-ASCII Encoding Converter

 Outdated Tutorials


 PDF Printing Version