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)
| Option | Description | Source |
|---|---|---|
-?, -h, --help | Print this help message | help + man |
--class-path path | Specifies the location of application JAR files or a directory containing classes to copy into the resulting JMOD file. | help + man |
--cmds path | Specifies the location of native commands to copy into the resulting JMOD file. | help + man |
--compress compress | Specifies the compression to use in creating the JMOD file. | help + man |
--config path | Specifies the location of user-editable configuration files to copy into the resulting JMOD file. | help + man |
--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" | help |
--dir path | Specifies the location where jmod puts extracted files from the specified JMOD archive. | help + man |
--dry-run | Performs a dry run of hash mode. | help + man |
--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> | help + man |
--hash-modules regex-pattern | Determines 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 path | Specifies the location of header files to copy into the resulting JMOD file. | help + man |
--help-extra | Prints help for extra options. | help + man |
--legal-notices path | Specifies the location of legal notices to copy into the resulting JMOD file. | help + man |
--libs path | Specifies 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 path | Specifies the location of man pages to copy into the resulting JMOD file. | help + man |
--module-version module-version | Specifies the module version to record in the module-info.class file. | help + man |
-p, --module-path path | Specifies 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 |
--version | Prints version information of the jmod tool. | help + man |
--dateTIMESTAMP | The 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-default | Exclude from the default root set of modules (in the manual page but not in --help) | man |
--warn-if-resolved | Hint for a tool to issue a warning if the module is resolved. (in the manual page but not in --help) | man |