automatic module
A plain jar placed on the module path, given a module name derived from its manifest or file name.
In more detail
The name comes from the Automatic-Module-Name manifest entry, or else from the file name with the version dropped and hyphens turned into dots. An automatic module reads every module and exports every package. It lets named modules depend on libraries that are not yet modular.
Example
legacy-utils-1.2.jar on the module path is the module legacy.utilsRelated terms
- module — A named set of packages with a descriptor, module-info.java, that declares what it requires, exports, opens, uses and provides.
- unnamed module — The module that holds every class loaded from the class path.
Taught in
- Modules: Exports, Opens And Services — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Jars, Automatic Modules And Runtime Images — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep