JLink – Module Linker

When we are talking about modular systems, then immediately one question comes, how dependencies  of modules will organize and what will be impact on final deployment?

The JLink tool is designed to provide optional phases between compile time and runtime, called link time, which links a set of modules and its transitive dependencies to create runtime images. JLink makes deployment simpler and also reduces the size of an application.

The invocation syntax of jLink is as follows:

jlink --module-path <modulepath> --add-modules <modules> --limit-modules <modules> --output <path>--module-path - jLink use module path for finding modules such as modular jars, JMOD files--add-modules - Mention module which needs to include in ...

Get Java 9 Dependency Injection now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.