© Kishori Sharan 2018
Kishori SharanJava APIs, Extensions and Librarieshttps://doi.org/10.1007/978-1-4842-3546-1_11

11. Packaging Modules

Kishori Sharan1 
Montgomery, Alabama, USA
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 in all phases. JDK9 supports the ...

Get Java APIs, Extensions and Libraries: With JavaFX, JDBC, jmod, jlink, Networking, and the Process API now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.