OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing) OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS) alternatives -config javaĪfter switching let’s check again active Java version: java -version Run below command from the command line and select the appropriate Java version to make it default. Use alternatives command-line utility to switch active Java version on your Amazon Linux system. OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) Run below commands to install Java 8 on Amazon Linux: sudo yum install java-1.8.0-openjdkĪfter successfully installing Java on Amazon Linux using the above steps, Let’s verify the installed version using the following command.Run below commands to install Java 11 on Amazon Linux: sudo amazon-linux-extras install java-openjdk11.You can simply install Java 11 or Java 8 on the Amazon Linux system using the following commands. The OpenJDK 8 is available under default yum repositories and OpenJDK 11 is available under Amazon Linux 2 extras repositories. As of now, Oracle has restricted these Java versions for registered users only, we will use OpenJDK for this installation. This tutorial will help you to install Java 11 or Java 8 on the Amazon Linux system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |