Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "p" in "javap" stand for?

Tags:

java

javap

What does "p" in "javap" stand for? (The "c" in "javac" stands for compiler)

like image 469
instantsetsuna Avatar asked Feb 01 '11 10:02

instantsetsuna


People also ask

What does the flag on Javap stand for?

Using javap with our classes -public – Shows only public classes and members. -protected – Shows only protected and public classes and members. -package – Shows only package, protected, and public classes and members. -p – Shows all classes and members. -Jflag – Pass flag directly to the runtime system.

Why is Javap not working?

You must have your $JAVA_HOME/bin directory added to system PATH for javap command to be available without it's absolute path. Save this answer. Show activity on this post. Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.

Where can I find Javap?

"javap" has been included in JDK installation since JDK 1.0. And it is represented by the %java_home%\bin\javap.exe program file. where "options" is a list of options and "classnames" is a list of Java class names.


2 Answers

By default, javap prints declarations of the non-private members of each of the classes specified on the command line

Reference : http://docstore.mik.ua/orelly/java/javanut/ch16_08.htm

like image 52
Adeel Avatar answered Sep 18 '22 05:09

Adeel


p = print

javap is part of the official Java tools and allows to disassemble one or more class files.

The "p" in this case stands for print, as in the official documentation is reported that:

... the javap command prints the package, protected and public fields, and methods of the classes passed to it. The javap command prints its output to stdout.

like image 28
pfmaggi Avatar answered Sep 18 '22 05:09

pfmaggi