Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
jdk.jlink/jdk.tools.jmod.Main - "jmod" Command
How to run "jmod" command from JDK lib\modules JImage file?
✍: FYIcenter
"jmod" command allows you to to create and manage JMod files
to store compiled Java class files of a single Java module.
"jmod" command is supported by the jmods\jdk.jlink.jmod module file, which is also linked into the lib\modules JImage file.
You can run the "jmod" command using the lib\modules JImage file as described below:
fyicenter> %JDK_HOME%\bin\java --module jdk.jlink/jdk.tools.jmod.Main --help
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
------ -----------
--class-path <path> Application jar files|dir containing
classes
--cmds <path> Location of native commands
--config <path> Location of user-editable config files
--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>
-h, --help Print this usage message
--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 <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 <target-platform> Target platform
--version Version information
@<filename> Read options from the specified file
⇒ jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider - "jshell" Command
⇐ jdk.jlink/jdk.tools.jlink.internal.Main - "jlink" Command
2020-01-29, ∼2237🔥, 0💬
Popular Posts:
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module. JDK 17 Naming module compiled cla...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...