© Kishori Sharan, Peter Späth 2021
K. Sharan, P. SpäthMore Java 17 https://doi.org/10.1007/978-1-4842-7135-3_12

12. Packaging Modules

Kishori Sharan1   and Peter Späth2
(1)
Montgomery, AL, USA
(2)
Leipzig, Sachsen, Germany
 
In this chapter, you will learn:
  • Different formats for packaging Java modules

  • Enhancements to the JAR format

  • What a multi-release JAR is

  • How to create and use multi-release JARs

  • What the JMOD format is

  • How to use the jmod tool to work with JMOD files

  • How to create, extract, and describe JMOD files

  • How to list the contents of JMOD files

  • How to record hashes of modules in JMOD files for dependency validation

A module can be packaged in different formats to be used in three phases: compile time, link time, and runtime. Not all formats are supported ...

Get More Java 17: An In-Depth Exploration of the Java Language and Its Features now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.