Modules in One Lesson
summary
Live coding shows turning a HelloWorld jar into two modules, compiling them on the module path, and provoking real errors: missing requires fails at compile and run, missing exports causes illegal access, and the system rejects no cycles allowed in the module graph. The modular JDK build used has 75 modules, jlink produces a tiny custom runtime (Jerry) down to about 44 MB that runs the app, and versioning is delegated to Maven/Gradle rather than built into modules.
AI-written summary · about
chapters (12)
- 0:00Start
- 14:13compile a module
- 16:17add to a module descriptor
- 23:42compile the hello module
- 31:19strong encapsulation at the module level
- 32:21construct custom runtime images
- 32:42construct a custom runtime system
- 33:54make a trivial java runtime system
- 36:05link those modules into the custom runtime system
- 37:12compress the class files in the module archive
- 43:28support versioning of modules
- 48:32putting the version numbers in the module name








