How To Install / Update Java On Amazon AWS Linux



How to install/update java on linux
(AWS ec2 AMI)

Today we will learn:

1. How to install java on amazon aws linux
2. How to update java

Step 1 : Check if java is already installed
java -version
javac -version

Step 2 : Update existing packages
sudo yum update
Get Java
https://stackoverflow.com/questions/10268583/downloading-java-jdk-on-linux-via-wget-is-shown-license-page-instead

wget –no-cookies –no-check-certificate –header “Cookie:…

3 thoughts on “How To Install / Update Java On Amazon AWS Linux

  1. Hi Raghav,
    while installing java using the following commad
    wget –no-cookies –no-check-certificate –header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.rpm"

    But i'm getting following error,

    HTTP request sent, awaiting response… 404 Not Found
    2018-08-30 06:41:45 ERROR 404: Not Found.

    Do we need to do any configuration…?

Leave a Comment

Your email address will not be published. Required fields are marked *