Chapter 14. The Java Module System

This chapter covers

  • The evolutionary forces causing Java to adopt a module system
  • The main structure: module declarations and requires and exports directives
  • Automatic modules for legacy Java Archives (JARs)
  • Modularization and the JDK library
  • Modules and Maven builds
  • A brief summary of module directives beyond simple requires and exports

The main and most-discussed new feature introduced with Java 9 is its module system. This feature was developed within project Jigsaw, and its development took almost a decade. This timeline is a good measure of both the importance of this addition and the difficulties that ...

Get Modern Java in Action now with O’Reilly online learning.

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