OS Manuals

/usr/lib/jvm/java-8-zulu/bin/javac

Zulu 8 Java development kit (CPU stream)

From zulu-8-cpu 8.0.501-r3 (enterprise-packages), captured 2026-11-08 by running javac -help (exit 0). permalink

Also provided by 1 other package version
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath <path>          Specify where to find user class files and annotation processors
  -cp <path>                 Specify where to find user class files and annotation processors
  -sourcepath <path>         Specify where to find input source files
  -bootclasspath <path>      Override location of bootstrap class files
  -extdirs <dirs>            Override location of installed extensions
  -endorseddirs <dirs>       Override location of endorsed standards path
  -proc:{none,only}          Control whether annotation processing and/or compilation is done.
  -processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses default discovery process
  -processorpath <path>      Specify where to find annotation processors
  -parameters                Generate metadata for reflection on method parameters
  -d <directory>             Specify where to place generated class files
  -s <directory>             Specify where to place generated source files
  -h <directory>             Specify where to place generated native header files
  -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files
  -encoding <encoding>       Specify character encoding used by source files
  -source <release>          Provide source compatibility with specified release
  -target <release>          Generate class files for specific VM version
  -profile <profile>         Check that API used is available in the specified profile
  -version                   Version information
  -help                      Print a synopsis of standard options
  -Akey[=value]              Options to pass to annotation processors
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system
  -Werror                    Terminate compilation if warnings occur
  @<filename>                Read options and filenames from file
Options (36)
OptionDescriptionSource
-gGenerates all debugging information, including local variables.help + man
-nowarnDisables warning messages.help + man
-verboseUses verbose output, which includes information about each class loaded and each source file compiled.help + man
-deprecationShows a description of each use or override of a deprecated member or class.help + man
-classpath pathSpecify where to find user class files and annotation processorshelp
-cp pathSpecifies where to find user class files, and (optionally) annotation processors and source files.help + man
-sourcepath pathSpecifies the source code path to search for class or interface definitions.help + man
-bootclasspath pathCross-compiles against the specified set of boot classes.help + man
-extdirs dirsOverrides the location of the ext directory.help + man
-endorseddirs dirsOverrides the location of the endorsed standards path.help + man
-processorpath pathSpecifies where to find annotation processors.help + man
-parametersStores formal parameter names of constructors and methods in the generated class file so that the method java.lang.reflect.Executable.getParameters from the Reflection API can retrieve them.help + man
-d directorySets the destination directory for class files.help + man
-s directorySpecifies the directory where to place the generated source files.help + man
-h directorySpecify where to place generated native header fileshelp
-encoding encodingSets the source file encoding name, such as EUC-JP and UTF-8.help + man
-source releaseProvide source compatibility with specified releasehelp + man
-target releaseGenerates class files that target a specified release of the virtual machine.help + man
-profile profileWhen using compact profiles, this option specifies the profile name when compiling.help + man
-versionPrints release information.help + man
-helpPrints a synopsis of standard options.help + man
-Akey valueOptions to pass to annotation processorshelp
-XDisplays information about nonstandard options and exits.help + man
-J flagPass <flag> directly to the runtime systemhelp
-WerrorTerminate compilation if warnings occurhelp
-Djava.ext.dirs directoriesOverrides the location of installed extensions. (in the manual page but not in --help)man
-Djava.endorsed.dirs directoriesOverrides the location of the endorsed standards path. (in the manual page but not in --help)man
-JoptionPasses option to the Java Virtual Machine (JVM), where option is one of the options described on the reference page for the Java launcher. (in the manual page but not in --help)man
-werrorTerminates compilation when warnings occur. (in the manual page but not in --help)man
-XlintEnables all recommended warnings. (in the manual page but not in --help)man
-Xmaxerrs numberSets the maximum number of errors to print. (in the manual page but not in --help)man
-Xmaxwarns numberSets the maximum number of warnings to print. (in the manual page but not in --help)man
-Xstdout filenameSends compiler messages to the named file. (in the manual page but not in --help)man
-XprintPrints a textual representation of specified types for debugging purposes. (in the manual page but not in --help)man
-XprintProcessorInfoPrints information about which annotations a processor is asked to process. (in the manual page but not in --help)man
-XprintRoundsPrints information about initial and subsequent annotation processing rounds. (in the manual page but not in --help)man
Examples (33) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.