OS Manuals

/usr/lib/jvm/java-21-amazon-corretto/bin/jlink

Amazon Corretto 21 is a no-cost, multi-platform, production-ready distribution of OpenJDK 21

From corretto-21 21.0.13.0.11-r0 (enterprise-packages), captured 2026-11-08 by running jlink --help (exit 0). permalink

Usage: jlink <options> --module-path <modulepath> --add-modules <module>[,<module>...]
Possible options include:
      --add-modules <mod>[,<mod>...]    Root modules to resolve in addition to the
                                        initial modules. <mod> can also be ALL-MODULE-PATH.
      --bind-services                   Link in service provider modules and
                                        their dependences
      --compress <compress>             Compression to use in compressing resources:
                                        Accepted values are:
                                        zip-[0-9], where zip-0 provides no compression,
                                        and zip-9 provides the best compression.
                                        Default is zip-6.
                                        Deprecated values to be removed in a future release:
                                        0:  No compression. Equivalent to zip-0.
                                        1:  Constant String Sharing
                                        2:  Equivalent to zip-6.
      --disable-plugin <pluginname>     Disable the plugin mentioned
      --endian <little|big>             Byte order of generated jimage
                                        (default:native)
  -h, --help, -?                        Print this help message
      --ignore-signing-information      Suppress a fatal error when signed
                                        modular JARs are linked in the image.
                                        The signature related files of the
                                        signed modular JARs are not copied to
                                        the runtime image.
      --launcher <name>=<module>[/<mainclass>]
                                        Add a launcher command of the given
                                        name for the module and the main class
                                        if specified
      --limit-modules <mod>[,<mod>...]  Limit the universe of observable
                                        modules
      --list-plugins                    List available plugins
  -p, --module-path <path>              Module path.
                                        If not specified, the JDKs jmods directory
                                        will be used, if it exists. If specified,
                                        but it does not contain the java.base module,
                                        the JDKs jmods directory will be added,
                                        if it exists.
      --no-header-files                 Exclude include header files
      --no-man-pages                    Exclude man pages
      --output <path>                   Location of output path
      --save-opts <filename>            Save jlink options in the given file
  -G, --strip-debug                     Strip debug information
      --suggest-providers [<name>,...]  Suggest providers that implement the
                                        given service types from the module path
  -v, --verbose                         Enable verbose tracing
      --version                         Version information
      @<filename>                       Read options from file
Options (19)
OptionDescriptionSource
--add-modules modAdds the named modules, mod, to the default set of root modules.help + man
--bind-servicesLink in service provider modules and their dependenceshelp + man
--compress, -c compressCompression to use in compressing resources: Accepted values are: zip-[0-9], where zip-0 provides no compression, and zip-9 provides the best compression.help + man
--disable-plugin pluginnameDisables the specified plug-in.help + man
--endian little|bigSpecifies the byte order of the generated image.help + man
-h, --help, -?Prints the help message.help + man
--ignore-signing-informationSuppresses a fatal error when signed modular JARs are linked in the runtime image.help + man
--launcher name>=<module>[/<mainclassSpecifies the launcher command name for the module or the command name for the module and main class (the module and the main class names are separated by a slash (/)).help + man
--limit-modules modLimits the universe of observable modules to those in the transitive closure of the named modules, mod, plus the main module, if any, plus any further modules specified in the --add-modules option.help + man
--list-pluginsLists available plug-ins, which you can access through command-line options;help + man
-p, --module-path pathSpecifies the module path.help + man
--no-header-filesExclude include header fileshelp + man
--no-man-pagesExcludes man pages.help + man
--output pathSpecifies the location of the generated runtime image.help + man
--save-opts filenameSaves jlink options in the specified file.help + man
-G, --strip-debugStrip debug informationhelp
--suggest-providers nameSuggest providers that implement the given service types from the module path.help + man
-v, --verboseEnable verbose tracinghelp
--versionPrints version information.help + man

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