0Pricing
Java Academy · Lesson

Migrating to Modules

Automatic and unnamed modules.

Modularizing Existing Code

Few projects adopt modules from day one. JPMS was designed for gradual migration, letting classpath and module path coexist.

The keys are automatic modules and the unnamed module.

The Unnamed Module

Everything loaded from the classpath lives in the single unnamed module. It reads every other module and exports all its packages.

This is the bridge that keeps legacy classpath code working.

All lessons in this course

  1. module-info.java
  2. requires and exports
  3. Services with provides/uses
  4. Migrating to Modules
← Back to Java Academy