It seems to me like the Java Runtime Environment (JRE) is quickly going out of fashion. Many Java builds like Oracle OpenJDK don’t offer pre-built JREs any more.
Why’s that? Well, because since Java 9 we can create our own custom JREs which contain only the modules our application needs.
In this video you’ll learn:
- why to consider creating your own JRE
- how to create a tiny JRE using
jlink
- ways to ensure your JRE has the correct modules
- and how to package it up into a Docker image
Create Your Own Tiny JRE With JLink