OS Manuals

/usr/lib/jvm/java-26-zulu/bin/jmod

Zulu 26 Java development kit

From zulu-26-psu 26.0.1-r6 (enterprise-packages), captured 2026-11-08 by running jmod --help (exit 0). permalink

Usage: jmod (create|extract|list|describe|hash) <OPTIONS> <jmod-file>

Main operation modes:
  create    - Creates a new jmod archive
  extract   - Extracts all the files from the archive
  list      - Prints the names of all the entries
  describe  - Prints the module details
  hash      - Records hashes of tied modules.

 Option                              Description
 ------                              -----------
  -?, -h, --help                      Print this help message
  --class-path <path>                 Application jar files|dir containing
                                        classes
  --cmds <path>                       Location of native commands
  --compress <compress>               Compression to use when creating the
                                        JMOD archive. Accepted values are:
                                        zip-[0-9], where zip-0 provides no
                                        compression, and zip-9 provides the
                                        best compression. Default is zip-6.
  --config <path>                     Location of user-editable config files
  --date <date>                       Date and time for the timestamps of
                                        entries, specified in ISO-8601
                                        extended offset date-time with
                                        optional time-zone format, e.g.
                                        "2022-02-12T12:30:00-05:00"
  --dir <path>                        Target directory for extract
  --dry-run                           Dry run of hash mode
  --exclude <pattern-list>            Exclude files matching the supplied
                                        comma separated pattern list, each
                                        element using one the following
                                        forms: <glob-pattern>, glob:<glob-
                                        pattern> or regex:<regex-pattern>
  --hash-modules <regex-pattern>      Compute and record hashes to tie a
                                        packaged module with modules
                                        matching the given <regex-pattern>
                                        and depending upon it directly or
                                        indirectly. The hashes are recorded
                                        in the JMOD file being created, or a
                                        JMOD file or modular JAR on the
                                        module path specified the jmod hash
                                        command.
  --header-files <path>               Location of header files
  --help-extra                        Print help on extra options
  --legal-notices <path>              Location of legal notices
  --libs <path>                       Location of native libraries
  --main-class <String: class-name>   Main class
  --man-pages <path>                  Location of man pages
  --module-version <module-version>   Module version
  -p, --module-path <path>            Module path
  --target-platform <String: target-  Target platform
    platform>
  --version                           Version information
  @<filename>                         Read options from the specified file
Options (23)
OptionDescriptionSource
-?, -h, --helpPrint this help messagehelp + man
--class-path pathSpecifies the location of application JAR files or a directory containing classes to copy into the resulting JMOD file.help + man
--cmds pathSpecifies the location of native commands to copy into the resulting JMOD file.help + man
--compress compressSpecifies the compression to use in creating the JMOD file.help + man
--config pathSpecifies the location of user-editable configuration files to copy into the resulting JMOD file.help + man
--date dateDate and time for the timestamps of entries, specified in ISO-8601 extended offset date-time with optional time-zone format, e.g. "2022-02-12T12:30:00-05:00"help
--dir pathSpecifies the location where jmod puts extracted files from the specified JMOD archive.help + man
--dry-runPerforms a dry run of hash mode.help + man
--exclude pattern-listExclude files matching the supplied comma separated pattern list, each element using one the following forms: <glob-pattern>, glob:<glob- pattern> or regex:<regex-pattern>help + man
--hash-modules regex-patternDetermines the leaf modules and records the hashes of the dependencies directly and indirectly requiring them, based on the module graph of the modules matching the given regex-pattern.help + man
--header-files pathSpecifies the location of header files to copy into the resulting JMOD file.help + man
--help-extraPrints help for extra options.help + man
--legal-notices pathSpecifies the location of legal notices to copy into the resulting JMOD file.help + man
--libs pathSpecifies location of native libraries to copy into the resulting JMOD file.help + man
--main-class String:Specifies main class to record in the module-info.class file.help + man
--man-pages pathSpecifies the location of man pages to copy into the resulting JMOD file.help + man
--module-version module-versionSpecifies the module version to record in the module-info.class file.help + man
-p, --module-path pathSpecifies the module path.help + man
--target-platform String:Specifies the target platform of a JMOD file intended for a specific operating system and architecture.help + man
--versionPrints version information of the jmod tool.help + man
--dateTIMESTAMPThe timestamp in ISO-8601 extended offset date-time with optional time-zone format, to use for the timestamp of the entries, e.g. "2022-02-12T12:30:00-05:00". (in the manual page but not in --help)man
--do-not-resolve-by-defaultExclude from the default root set of modules (in the manual page but not in --help)man
--warn-if-resolvedHint for a tool to issue a warning if the module is resolved. (in the manual page but not in --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.