

Now, click on the RPM file link as marked in the screenshot below. To do that, click on Accept License Agreement as marked in the screenshot below. Now, you have to accept the Oracle Technology Network License Agreement for Oracle Java SE in order to download Oracle JDK 11. Now, scroll down a little bit to the Java SE Development Kit 11.x.y section. Now, navigate to the Java SE 11.x.y (LTS) section and click on the DOWNLOAD button as marked in the screenshot below.

Once the page loads, click on Downloads as marked in the screenshot below. But you can download Oracle JDK 11 from the official website of Oracle and install it on CentOS 7.įirst, visit the official webpage of Oracle JDK at Oracle JDK 11 is not available in the official package repository of CentOS 7. In this article, I will show you how to install Oracle JDK 11 on CentOS 7. If you’re using JDK 9 or JDK 10, then I recommend you upgrade to JDK 11. JDK 8 and JDK 11 are the only officially supported versions of JDK at the time of this writing. OpenJDK 64-Bit Server VM Corretto-11.0.12.7.1 (build 11.0.The latest LTS (Long Term Support) version of JDK (Java Development Kit) is version 11 which came out recently. That's it execute java -version, you can see the java version as openjdk version "11.0.12" LTS

Currently the java version is 11.0.12.7.1 The amazon-corretto jdk version may vary based on the timeline that you download. Run the below single line command to change the soft link for java files in (/usr/bin) directory cd /usr/java/amazon-corretto-*-linux-圆4/binįor i in java javac jfr do path=$(find `pwd`/$i -type f) echo $path sudo alternatives -install /usr/bin/$i $i $path 20000 sudo update-alternatives -config $i doneĪfter the above command execution, there will be a command prompt that will ask you to choose the selection number which represents the file residing path and we should choose the number which refers to path /usr/java/amazon-corretto-*-linux-圆4/bin/ Note: check the ec2 instance's platform ie., 圆4, aarch64, x86, aarch32 etc.,because the wrong platform jdk installation will leads to /bin/java: /bin/java: cannot execute binary fileĮxtracting the JDK to /usr/java/ sudo tar -xvzf amazon-corretto-11-圆 -C /usr/java/
