JLink - The Java Linker [JEP-282]

The Java Linker, commonly referred to as JLink, is a tool that was created to create custom runtime images. This tool collects the appropriate modules along with their dependencies, then optimizes them to create the image. This represents a big change for Java, with the release of Java 9. Before the Java Linker tool, jlink, was available, runtime image creation included initially copying the entire JRE. In a subsequent step, the unused components were removed. In Java 9, jlink creates runtime images with only the needed modules. jlink is used by the Java Packager to generate an embedded runtime image.

As illustrated in a previous section, JEP-282 resulted in link time as an optional phase between compile ...

Get Java 9: Building Robust Modular Applications 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.