-Akey value | Specifies options to pass to annotation processors. | help + man |
--add-modules module>( | Specifies root modules to resolve in addition to the initial modules, or all modules on the module path if module is ALL-MODULE-PATH. | help + man |
-d directory | Sets the destination directory (or class output directory) for class files. | help + man |
-deprecation | Shows a description of each use or override of a deprecated member or class. | help + man |
--enable-preview | Enables preview language features. | help + man |
-encoding encoding | Specifies character encoding used by source files, such as EUC-JP and UTF-8. | help + man |
-endorseddirs dirs | Overrides the location of the endorsed standards path. | help + man |
-extdirs dirs | Overrides the location of the installed extensions. | help + man |
-g | Generates all debugging information, including local variables. | help + man |
-h directory | Specifies where to place generated native header files. | help + man |
--help, -help, -? | Prints a synopsis of the standard options. | help + man |
--help-extra, -X | Prints a synopsis of the set of extra options. | help + man |
-J flag | Pass <flag> directly to the runtime system | help |
--limit-modules module>( | Limits the universe of observable modules. | help + man |
--module-source-path module-source-path | Specifies where to find source files when compiling code in multiple modules. | help + man |
--module-version version | Specifies the version of modules that are being compiled. | help + man |
-nowarn | Generate only mandatory warnings. | help + man |
-parameters | Generates metadata for reflection on method parameters. | help + man |
-processor class1 | Names of the annotation processors to run; | help + man |
--processor-module-path path | Specifies the module path used for finding annotation processors. | help + man |
-profile profile | Checks that the API used is available in the specified profile. | help + man |
--release release | Compiles source code according to the rules of the Java programming language for the specified Java SE release, generating class files which target that release. | help + man |
-s directory | Specifies the directory used to place the generated source files. | help + man |
--system jdk>|none | Overrides the location of system modules. | help + man |
--upgrade-module-path path | Overrides the location of upgradeable modules. | help + man |
-verbose | Outputs messages about what the compiler is doing. | help + man |
--version, -version | Prints version information. | help + man |
-Werror | Terminates compilation when any warnings occur; | help + man |
--boot-class-path, -bootclasspath path | Overrides the location of the bootstrap class files. (in the manual page but not in --help) | man |
--class-path, -classpath, -cp path | Specifies where to find user class files and annotation processors. (in the manual page but not in --help) | man |
--help-lint | Prints the supported keys for the -Xlint option. (in the manual page but not in --help) | man |
-implicit none | Specifies whether or not to generate class files for implicitly referenced files: (in the manual page but not in --help) | man |
-Joption | Passes option to the runtime system, where option is one of the Java options described on java command. (in the manual page but not in --help) | man |
--module, -m module-name | Compiles those source files in the named modules that are newer than the corresponding files in the output directory. (in the manual page but not in --help) | man |
--module-path, -p path | Specifies where to find application modules. (in the manual page but not in --help) | man |
-proc none | Controls whether annotation processing and compilation are done. (in the manual page but not in --help) | man |
--processor-path, -processorpath path | Specifies where to find annotation processors. (in the manual page but not in --help) | man |
--source, -source release | Compiles source code according to the rules of the Java programming language for the specified Java SE release. (in the manual page but not in --help) | man |
--source-path, -sourcepath path | Specifies where to find source files. (in the manual page but not in --help) | man |
--target, -target release | Generates class files suitable for the specified Java SE release. (in the manual page but not in --help) | man |
--add-exports module/package=other-module( | Specifies a package to be considered as exported from its defining module to additional modules or to all unnamed modules when the value of other-module is ALL-UNNAMED. (in the manual page but not in --help) | man |
--add-reads module=other-module( | Specifies additional modules to be considered as required by a given module. (in the manual page but not in --help) | man |
--default-module-for-created-files module-name | Specifies the fallback target module for files created by annotation processors, if none is specified or inferred. (in the manual page but not in --help) | man |
--disable-line-doc-comments | Disables support for documentation comments with lines beginning ///. (in the manual page but not in --help) | man |
-Djava.endorsed.dirs dirs | Overrides the location of the endorsed standards path. (in the manual page but not in --help) | man |
-Djava.ext.dirs dirs | Overrides the location of installed extensions. (in the manual page but not in --help) | man |
--patch-module module=path | Overrides or augments a module with classes and resources in JAR files or directories. (in the manual page but not in --help) | man |
-Xdiags compact | Selects a diagnostic mode. (in the manual page but not in --help) | man |
-Xdoclint | Enables recommended checks for problems in documentation comments. (in the manual page but not in --help) | man |
-Xlint | Enables recommended lint warning categories. (in the manual page but not in --help) | man |
-Xmaxerrs number | Sets the maximum number of errors to print. (in the manual page but not in --help) | man |
-Xmaxwarns number | Sets the maximum number of warnings to print. (in the manual page but not in --help) | man |
-Xpkginfo always | Specifies when and how the javac command generates package-info.class files from package-info.java files using one of the following options: (in the manual page but not in --help) | man |
-Xprefer source | Specifies which file to read when both a source file and class file are found for an implicitly compiled class using one of the following options. (in the manual page but not in --help) | man |
-Xprint | Prints a textual representation of specified types for debugging purposes. (in the manual page but not in --help) | man |
-XprintProcessorInfo | Prints information about which annotations a processor is asked to process. (in the manual page but not in --help) | man |
-XprintRounds | Prints information about initial and subsequent annotation processing rounds. (in the manual page but not in --help) | man |
-Xstdout filename | Sends compiler messages to the named file. (in the manual page but not in --help) | man |