How To Install / Update Java On Amazon AWS Linux

preview_player
Показать описание
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

As of 07-11-2020 this link works

Step 3 : Install java

Step 4 : Select Java to be used sudo /usr/sbin/alternatives --config java

____________________________________________________________
HIT SUBSCRIBE & BELL TO GET NEW VIDEOS

Become a member & get exclusive perks - Click the JOIN button

________ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

Keep Learning,
Raghav

Рекомендации по теме
Комментарии
Автор

you can simply run this - sudo yum install java-1.8.0-openjdk-devel

BVSSNRaju
Автор

YOU ARE SO HELPFUL!!! THIS IS LIKE THE 5TH TIME I CAME HERE TO GET JAVA RUNNING ON MY SERVER.

ampersanded
Автор

Hi Raghav, Could you please give steps for installing JDK 11 in ec2?

mohinijavagi
Автор

Sir can you please suggest commands to uninstall java from unix system

riyazuddinmansuri
Автор

Hi, for development articles it will be great to use official documentation like how to use Java website to fetch required syntax. No point in showing google/stack pages.

blackarc
Автор

Is there are command to verify that java is running? by checking the version how do you know the process is running?

solidaritygroup
Автор

sir please can u explain me where iam doing mistake .I am facing this a lot IN JENKINS
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]

Build step 'Send build artifacts over SSH' changed build result to UNSTABLE

hariomjain
Автор

when i am pasting the url it is showing 404 error

AlokKumar-kmpi
Автор

I am getting this error

Connecting to download.oracle.com connected.
HTTP request sent, awaiting response... 404 Not Found
2020-08-24 14:55:41 ERROR 404: Not Found.

codeaccount
Автор

Hi Raghav,
while installing java using the following commad

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...?

karthikraj
Автор

Why do we need to install java on linux or Aws ? Can you please provide more details "How it would help after installing?" What is the purpose of installation.

srinivaskadiyalaSKC
Автор

I m getting error HTTP request sent, awaiting response... 404 Not Found, can you help me how to resolve this

rohitmanohar
Автор

hi Raghav, can you prepare separate playlist for DevOps which will have videoes for ansible, chef, puppet and life cycle of Dev Ops

surwase
Автор

Hello, thank you for this helpfull video!

comiatimarius
Автор

Thank you do much. It was very useful

sweetsangu
Автор

Hi sir, am getting the following error when i get to "sudo /usr/sbin/alternatives --config-java"
how can i fix it please?

alternatives version 1.7.4 - Copyright (C) 2001 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage: alternatives --install <link> <name> <path> <priority>
[--initscript <service>]
[--family <family>]
[--slave <link> <name> <path>]*
alternatives --remove <name> <path>
alternatives --auto <name>
alternatives --config <name>
alternatives --display <name>
alternatives --set <name> <path>
alternatives --list

common options: --verbose --test --help --usage --version --keep-missing
--altdir <directory> --admindir <directory>

azaifel
Автор

Hi could you help me on java upgrade in jenkins server linux(on prime)

rambaburam
Автор

Is AWS a paid account ? How did you add linux OS in AWS ?

vishamdookia
Автор

Hello Sir Good evening
Will you make a video on JBoss if possible?

inturimadhurichowdary
Автор

I run download command multiple times - but I am getting " failed: Connection timed out." issue. how can I fix it

maddi