2.3 Javac Compiler
The Javac compiler reads the Java source code and compiles it into byte code, and the command line that invokes Javac is as follows:
C:\>javac Options Filename.java
Notably, unlike the Java interpreter, the Javac compiler expects the file it is compiling to have an extension. Java. The following table is the command line
Options feature
-classpath path This option is used to set the path on which the javac looks for the class that needs to be invoked. The path is a semicolon-separated list of directories.
-D Directory This option specifies a root directory. This directory is used to create the number of directories that reflect the package inheritance relationship.
-G This option opens the debug table in the code generator, which can be used to generate the byte code later.
-nowarn This option prevents the compiler from generating a warning.
-o This option tells Javac to optimize the code generated by inline static, final, and Privite member functions.
-verbose This option tells Java to display information about the compiled source files and any called class libraries.