AWS EC2: Make OpenJDK 1.8.0 Java Default Version


This is a record when I make OpenJDK 1.8.0 default version in AWS EC2.

Environment

  • AWS EC2 Amazon Linux

Procedure

Install OpenJDK 1.8.0

First, I installed OpenJDK 1.8.0.

Change default version

As the following, I changed the default Java version.

Confirmation

I confirmed that I changed the version by executing java -version.