Some applications that you’ll come across will require Java 8 in order to run. By default (as of the time of this article), the Amazon Linux AMI has Java 7 installed.
In order to upgrade these machines so that they are using Java 8, use the following: