sudo apk add openjdk11-jre
The open-source implementation of the Java SE platform. It is the default in almost every Linux repository (Ubuntu, Fedora, Arch) and is recommended for 99% of users. jre linux
For development or building code, install the instead. For running Java apps in production – especially headless servers – the JRE is exactly what you need. sudo apk add openjdk11-jre The open-source implementation of
Some specific JRE features that are useful on Linux include: jre linux
A: Some JDK packages include a full JRE, and the java binary is the same.
A: No. Just open a new terminal or source your profile.
If you are running a server without a GUI, install the -headless version of the JRE. It consumes fewer resources by stripping out UI libraries.