JMOD file
A packaging format for JDK modules, used by jlink to build runtime images.
In more detail
A JDK's jmods directory holds one .jmod file per platform module, such as java.base.jmod. jlink in Java 21 links from these files and from modular jars on the module path. A JDK built without jmods cannot create runtime images with jlink.
Example
jlink --module-path mods --add-modules com.acme.app --output runtimeRelated terms
- jlink — The JDK tool that links a set of modules and their dependencies into a custom runtime image.
- module — A named set of packages with a descriptor, module-info.java, that declares what it requires, exports, opens, uses and provides.
Taught in
- Jars, Automatic Modules And Runtime Images — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep