JAVAP--Java class file parser

Source: Internet
Author: User

Reference documents

Http://blog.chinaunix.net/uid-692788-id-2681132.html

Http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javap.html

function Description: Java class file parser.

syntax:javap [ command Options ] class ...

Additional notes:

  The javap command is used to parse the class file. Its output depends on the options used. Without an option,JAVAP outputs the public domain and method of the class passed to it. The JAVAP outputs it to the standard output device.

Command options:

  -help The Help information for the output JAVAP .

  - l output rows and local variable tables.

  - b ensures backward compatibility with JDK 1.1 Javap .

  -public displays only public classes and members.

  -protected displays only the protected and public classes and members.

  -package only displays packages,protected , and public classes and members. This is the default setting.

  -private Displays all classes and members.

  -j[flag] direct flag to the runtime system.

  - s output internal type signature.

  The unresolved code for each method in the- C Output class, which is the instruction that constitutes the Java bytecode.

  -verbose The output stack size, the locals of each method, and the number of args .

  -classpath[ Path ] Specifies the path that JAVAP uses to find the class. If this option is set, it overrides the default value or CLASSPATH environment variable. Directories are separated by colons.

-Bootclasspath Specifies the path used to load the bootstrap class. By default, the Bootstrap class is the class that implements the core Java platform, located in the Jrelibt.jar

and Jrelibi18n.jar .

  -extdirs[dirs] overrides the location of the search installation mode extension. The default location for the extension is jrelibext.

JAVAP--Java class file parser

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.