This repo provides an introduction to using some of the key functionality of jlink
to create custom runtime images for running a Java application.
Be sure to check out the YouTube video for additional details: https://youtu.be/mJKlxqQQeyI
The repo is divided into five distinct parts;
We start by using the most basic functionality jlink, by creating a runtime image for a "Hello World!" program. Link
Step 2 covers how to use JDeps to find the dependent modules for an application, and build a runtime image with those modules. Link
In this step we look at how to add non-JDK modules, in this org.apache.commons.lang3
to a runtime image. Link
During this step we walk-through the process of creating our own explicit module and adding it to a runtime image. Link
We create a launcher for our runtime image, which can be used to streamline the process of running an application. Link
We look at a couple of the customization options; generating a CDS archive, and compressing the runtime image, jlink
provides. Link