Language Java Tutorial

javac [options] [sourcefiles] [classes]
options: Refers to command line options.
sourcefiles: Refers to the source files that need to be compiled.
classes: Refers to one or more classes to be processed for annotations.
OptionDescription
-cp path or -classpath pathSpecifies the Java classpath.
-d directorySets the destination directory to store class files.
-gGenerates debugging information.
-g:noneInstructs the javac tool not to generate any debugging information.
-helpPrints information about the options of the javac tool.
-XlintDisplays warnings against the use of deprecated classes and methods.
-Xlint:-nameDisables deprecation warnings for a specified class, interface, or method.
-Xlint:pathDisplays a warning when you specify a directory to compile but the directory does not exist.