Example 1: Direct dependency. Shows how to add simple library dependency in modular way.
Example 2: Services and ServiceLoader. Shows how to load module's services with ServiceLoader
.
Example 3: Modules and resources. Shows how to share resources in modules.
Example 4: Automatic module. Shows how to deal with existing non-modular jar.
English: Java 9. Project Jigsaw. Modularity
Русский: Java 9. Project Jigsaw. Модульность