Introduction to Modular Development
summary
Gentle, hands‑on intro to the Java Platform Module System that shows how to write a module descriptor (module-info.java), compile with javac using a module-path, package as a modular JAR, and run with java -m; explains requires public (implied readability), exports vs internal packages, and that accessibility is enforced at compile time and runtime. Covers mixing classpath and module path, services for optional dependencies, the jlink linker to build tiny custom runtime images, and the jar/jlink command lines to reproduce the examples.
AI-written summary · about
chapters (19)
- 0:00Start
- 1:44What Is a Module
- 2:50Modules Description
- 3:48Dependencies
- 5:23Java Base
- 6:08Java Sql Module
- 10:03Implied Readability
- 10:59Encapsulation
- 11:57Module Declaration
- 12:15Accessibility
- 14:45Spaghetti Diagrams
- 24:12Packaging
- 24:26Jar Files
- 29:12Mix the Class Path and the Module Path
- 30:10Add Mods
- 30:57Linking
- 34:20Create a Runtime Image
- 39:25Solution for Optional Dependencies
- 49:18How Does the Public Non-Accessible Classes Work for Javadoc








