afokix.blogg.se

Install openjdk 11 amazon linux
Install openjdk 11 amazon linux











  1. #Install openjdk 11 amazon linux how to#
  2. #Install openjdk 11 amazon linux install#

With the removal of java7 from the cloud9 IDE, installation of java8 in cloud9 IDE is complete. As I don’t need java7 anymore so I am removing it with below commandįor Amazon Linux: sudo yum remove java-1.7.0-openjdk-devel I always like to keep my environment clean and keep only required things. java -version Step 6 : Remove Java7 Package Step 5: Check Java version AgainĪfter doing selection, let’s run java – version again to ensure it’s point to opnejdk8 now. sudo update-alternatives -config javaĬhoose selection number which contains java8 as shown in below screenshot. Run below command to switch or upgrade the command line versions of the Java runner(java) and compiler(javac).

#Install openjdk 11 amazon linux install#

Latest security updates are installed so let’s install openjdk8 now Amazon Linux: sudo yum -y install java-1.8.0-openjdk-devel Ubuntu: sudo apt install -y openjdk-8-jdk Step 4: Switch the default Java env to OpenJDK 8 Amazon Linux: sudo yum -y update Ubuntu Server: sudo apt update Step 3: Install OpenJDK 8 It’s a good security practice to update latest security updates. But before doing that let’s install latest security updates. Step 2: Install Latest Security UpdatesĪfter checking the java version now we know that we need to install java8. Which proves that by default cloud 9 on Linux has Java7 installed. When you run this command in a newly created cloud9(Linux) environment, you will see output like below. you can run below command for Linux/Ubuntu java -version I always start with checking the java version.

#Install openjdk 11 amazon linux how to#

How to run Hello World on AWS Lambda in 5 minutes Step 1: Check Java Version.AWS Lambda with Java Step by Step Tutorial.Java -version Steps to Install Java 8 on AWS Cloud9 IDE Java -version For Ubuntu Server: java -version Sudo yum -y install java-1.8.0-openjdk-devel However, If you would like to understand each command and see the installation step by step, keep reading the post till the end.

install openjdk 11 amazon linux install openjdk 11 amazon linux

If you want to have the command straightaway, you can find them below for Linux as well as Ubuntu Server. However, I will provide installation command for Linux as well as Ubuntu server for your reference. Please note that, if you create a cloud9 IDE using Ubuntu server, it already comes with java8. While creating a cloud9 environment there are three options for platform to choose from as you can see in above screenshot as well.













Install openjdk 11 amazon linux