jlink

The JDK tool that links a set of modules and their dependencies into a custom runtime image.

In more detail

jlink takes --module-path, --add-modules for the root modules and --output for a new directory. The image has its own bin/java and contains only the modules needed. Automatic modules cannot be linked.

Example

jlink --module-path mods --add-modules com.acme.app --output runtime

Related terms

Taught in

References

Certification courses