First, Javac
usage : Javac < options > < source files >
Among the possible options are:
-help Help Information
-G generates all debug information
-g:none does not generate any debug information
-g:{lines,vars,source} only generates some debugging information
-nowarn does not generate any warnings
-verbose output messages about the actions that the compiler is performing
-deprecation output using outdated API source location
-classpath < paths > specifying where to find user class files
-CP < paths > specifying where to find user class files
-sourcepath < paths > Specify where to find the input source files
-bootclasspath < path > Overwrite the location of the boot class file
-extdirs < directory > location of the extended directory to overwrite installation
-endorseddirs < directory > location of standard paths for overwriting signatures
-D < directory > Specify the location where the generated class files are stored
-encoding < encoding > specifying the character encoding used by the source file
-source < version > provides source compatibility with the specified version
-target < version > Generate a class file for a specific VM version
-version Version Information
Summary of-HELP output standard options
-X output a feed of non-standard options
-j< Flag > Direct < flag > pass to runtime system
Second, JAVAP
Usage:
JAVAP [command options] class ...
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.
- C The unresolved code for each method in the output class, which is the instruction that constitutes the Java bytecode.
-verbose output stack size, locals and args of each method, and compiled version of class file
-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[Path] Specifies the path used to load the bootstrap class. By default, the Bootstrap class is the class that implements the core Java platform, in JrelibT.jar and Jrelibi18n.jar.
-extdirs[dirs] Overrides the location of the search installation mode extension. The default location for the extension is jrelibext.
Javase--javac, JAVAP