java -addmods [,...] javac -addmods (,)* jlink --addmods [,...] Root modules to resolve java -agentlib:[=] java -agentpath:[=] javac -Akey[=value] Options to pass to annotation processors javac -bootclasspath Override location of bootstrap class files jlink -c, --compress=2 Enable compression of resources (level 2) javac -classpath Specify where to find user class files and annotation processors java -classpath jmod --class-path Application jar files|dir containing jmod --cmds Location of native commands jmod --config Location of user-editable config files javac -cp Specify where to find user class files and annotation processors java -cp java -d32 use a 32-bit data model if available java -d64 use a 64-bit data model if available java -da[:...|:] javac -deprecation Output source locations where deprecated APIs are used java -disableassertions[:...|:] javac -d Specify where to place generated class files javac -Djava.endorsed.dirs= Override location of endorsed standards path javac -Djava.ext.dirs= Override location of installed extensions java -D= java -dsa | -disablesystemassertions java -ea[:...|:] java -enableassertions[:...|:] javac -encoding Specify character encoding used by source files jlink --endian Byte order of generated jimage (default:native) javac -endorseddirs Override location of endorsed standards path java -esa | -enablesystemassertions jmod --exclude Exclude files, given as a PATTERN javac -extdirs Override location of installed extensions javac -g Generate all debugging info jlink -G, --strip-debug Strip debug information javac -g:{lines,vars,source} Generate only some debugging info javac -g:none Generate no debugging info jmod --hash-dependencies Compute and record hashes of javac -help Print a synopsis of standard options jlink --help Print this help message jmod --help Print this usage message javac -h Specify where to place generated native header files javac -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files java -javaagent:[=] java -? -help print this help message javac -J Pass directly to the runtime system jmod --libs Location of native libraries javac -limitmods (,)* Limit the universe of observable modules java -limitmods [,...] jlink --limitmods [,...] Limit the universe of observable modules java -listmods[:[,...]] jlink --list-plugins List available plugins jmod --main-class Main class javac -m Compile only the specified module, check timestamps java -m | / javac -modulepath Specify where to find application modules java -modulepath ... jlink --modulepath Module path jmod --modulepath, --mp Module path javac -modulesourcepath Specify where to find input source files for multiple modules jmod --module-version Module version javac -mp Specify where to find application modules java -mp javac -nowarn Generate no warnings jmod --os-arch Operating system architecture jmod --os-name Operating system name jmod --os-version Operating system version jlink --output Location of output path javac -parameters Generate metadata for reflection on method parameters jlink --plugin-module-path Custom plugins module path javac -processor [,,...] Names of the annotation processors to run; bypasses default discovery process javac -processormodulepath Specify a module path where to find annotation processors javac -processorpath Specify where to find annotation processors javac -proc:{none,only} Control whether annotation processing and/or compilation is done. javac -profile Check that API used is available in the specified profile javac -release Compile for a specific VM version. Supported targets: 6, 7, 8, 9 jlink --saveopts Save jlink options in the given file java -server to select the "server" VM java -showversion print product version and continue javac -s Specify where to place generated source files javac -source Provide source compatibility with specified release javac -sourcepath Specify where to find input source files java -splash: javac -system |none Override location of system modules javac -target Generate class files for specific VM version javac -upgrademodulepath Override location of upgradeable modules java -upgrademodulepath ... java -verbose:[class|gc|jni] javac -verbose Output messages about what the compiler is doing javac -version Version information java -version print product version and exit jlink --version Version information jmod --version Version information javac -Werror Terminate compilation if warnings occur javac -XaddExports:/=(,)* java -XaddExports:/=(,)* javac -XaddReads:=(,)* java -XaddReads:=(,)* java -Xbatch disable background compilation java -Xbootclasspath/a: javac -Xbootclasspath/a: Append to the bootstrap class path javac -Xbootclasspath: Override location of bootstrap class files javac -Xbootclasspath/p: Prepend to the bootstrap class path java -Xcheck:jni perform additional checks for JNI functions java -Xdiag show additional diagnostic messages java -Xdiag:resolver show resolver diagnostic messages javac -Xdiags:{compact,verbose} Select a diagnostic mode java -Xdisable-@files disable further argument file expansion javac -Xdoclint:(all|none|[-])[/] javac -Xdoclint Enable recommended checks for problems in javadoc comments javac -Xdoclint/package:([-]) java -Xfuture enable strictest checks, anticipating future default java -Xincgc enable incremental garbage collection java -Xint interpreted mode execution only javac -X Print a synopsis of nonstandard options java -X print help on non-standard options javac -Xlint Enable recommended warnings javac -Xlint:key,... java -Xloggc: log GC status to a file with time stamps javac -Xmaxerrs Set the maximum number of errors to print javac -Xmaxwarns Set the maximum number of warnings to print java -Xmixed mixed mode execution (default) javac -Xmodule: Specify a module to which the classes being compiled belong. java -Xms set initial Java heap size java -Xmx set maximum Java heap size java -Xnoclassgc disable class garbage collection java -Xpatch:=(:)* javac -Xpatch: Specify location of module class files to patch javac -Xpkginfo:{always,legacy,nonempty} Specify handling of package-info files javac -Xplugin:"name args" Name and optional arguments for a plug-in to be run javac -Xprefer:{source,newer} Specify which file to read when both a source file and class file are found for an implicitly compiled class javac -Xprint Print out a textual representation of specified types javac -XprintProcessorInfo Print information about which annotations a processor is asked to process javac -XprintRounds Print information about rounds of annotation processing java -Xprof output cpu profiling data java -Xrs reduce use of OS signals by Java/VM (see documentation) java -Xshare:auto use shared class data if possible (default) java -Xshare:off do not attempt to use shared class data java -Xshare:on require using shared class data, otherwise fail. java -XshowSettings:all java -XshowSettings show all settings and continue java -XshowSettings:locale java -XshowSettings:properties java -XshowSettings:vm show all vm related settings and continue java -Xss set java thread stack size javac -Xstdout Redirect standard output