The corretto-11 bundle

Functionality

The corretto-11 bundle provides the Amazon Corretto 11, an Open Java Development Kit (OpenJDK) compatible solution. It is a drop-in replacement for the Java SE runtime.

It also configures the /etc/profile.d/corretto-11.sh script so the JAVA_HOME and PATH variables are set at boot time. However, after just installing the bundle the current sessions do not have these variables updated. Either log in again to get these variables set or source the profile file for the current session:

$ source /etc/profile.d/corretto-11.sh

Configuration

Bundle variables

BUNDLE_SOURCES: This bundle uses the amazon directory to find the origins from where to get the binaries to install.

Home directory

PHY_JAVA_HOME: The directory where the binaries will be installed. By default they are installed in /opt/corretto-11 but can be placed anywhere.