[Java] Install Amazon Corretto 8

Introduction

AWS officially released Amazon Corretto 8 (original OpenJDK) on February 4th Articleを読みまして、試しにインストールしてみることにしました。

Premise

It will be carried out on Mac.

procedure

  1. Download First, download the JDK from this AWS site. In my case, it's a Mac, so I chose macOS x64 "amazon-corretto-8.202.08.2-macosx-x64.pkg". DL the one that matches your OS. スクリーンショット 0031-02-09 0.48.17.png

  2. Installation Double-click the DL pkg file and follow the wizard to install it. The following screen will appear, but unless you want to do something special for the time being, continue to complete without customizing anything. スクリーンショット 0031-02-09 0.54.43.png

  3. Settings The thing goes into / Library / Java / JavaVirtualMachines /, but finally type the following command in the terminal to complete the installation. Also, if you want to set JAVA_HOME, specify the path displayed in the result with the export command.

#command
$ /usr/libexec/java_home --verbose

#Result output
$ Matching Java Virtual Machines (2):
    1.8.0_202, x86_64:	"Amazon Corretto 8"	/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home

#(Optional) JAVA_HOME settings
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home

that's all. The above is the procedure written on the AWS site, so I think it is correct. (Should the JAVA_HOME setting be written in a profile or something?)

I usually use Eclipse, so I specified this JDK in a suitable project and confirmed that it works (obviously).

At the end

It seems that Java 8 is the only official release, but 11 of them will be released. Although there are differences in the support deadline, there is also an option called Adopt Open JDK. In any case, I wonder if Java will continue to live with this.

Recommended Posts

[Java] Install Amazon Corretto 8
Install java 1.8.0 on Amazon linux2
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
Install Amazon Corretto JDK with SDKMAN!
Install Java8 with Yum on Amazon Linux
Install Corretto 8 on Windows
Install Java on Mac
Install Java with Ansible
Install Amazon Corretto (preview) for the time being
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Java 7 with Homebrew (cask)
Install rbenv on Amazon Linux
Install Java on WSL Ubuntu 18.04
Install java with Ubuntu 16.04 based Docker
Install Java and Tomcat with Ansible
Install Java with zip on Windows
Amazon Corretto for Windows installation procedure
Install Java Open JDK 8 on CentOS 7
Java
Java
Install Java 9 on windows 10 and CentOS 7
Corretto (JDK) is out from Amazon!
Install Java development environment on Mac
If you can't install java on Catalina
Install OpenJDK (Java) on the latest Ubuntu
[Java] Send an email using Amazon SES
Let's run Servlet on Amazon Corretto now
Download and install Eclipse (Java) (Mac version)
How to install the legacy version [Java]
How to install kafkacat on Amazon Linux2
[Mac] Install Java in Visual Studio Code
Install Docker and create Java runtime environment