Runtime images using Jlink

Jlink is a tool to assemble and optimize a set of modules and their dependencies in a custom runtime image. It was introduced in JDK 9.

Jlink can only work if all the dependencies of a project are on the module-path i.e. the project is modularized.

Jlink can be either be used directly or via the build tools.

In order to use jlink, both JavaFX SDK and JMODS are required. Download them and unzip at a desired location. We will use these later in the tutorial.