How to install and configure Java JDK 21 on Ubuntu 22.04 LTS | install java jdk 21 on Ubuntu Linux

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys in this video we will see how to download install and configure Java jdk 21 ontu 2204 LDS version the process is same for all to versions open Terminal verify whether Java is installed or not see we don't have Java so contrl L to clear screen first update the depositor sudo a update control L to clear screen now open browser then go to google.com then search for Java downloads click on the first link that is oracle.com see here we have the latest Java jdk here we have Linux Mac OS windows so our is Linux and we have to download this deian package right click on this package copy the link then go to terminal then W get paste that link hit enter see it is going to download it's the size is 160 mbes if you are on red hat or Fedora or any any other Red Hat Family you have to download RPM package for open to debn or call links you have to download this deian package wait until this download completes see you have successfully downloaded let's LS see Java jdk 21 Linux de package is there now control L to clear screen now we have to install sudo DP kg hyph I then file name here this is the file name okay or package name u jdq space hit enter now verify whether Java jdk is installed or not to clear screen Java Java hyphen version see we have installed Java version 21 okay now we will see how to run sample Java program on Ubuntu machine Let's create a directory make D Java programs CD Java open VI then give the program name here I'm giving first program. Java H enter press I to insert mode paste this command I will keep this sample code in the video description Escape colum WQ exclamation to save and quit okay now compile the Java file Java C first then program file name hit enter is Success let's verify the files LS L see it has created AR schools class okay now run Java R schools and hit enter see it printed whatever is there in this program let's add one more line VI first program system. out. print Ln put the semicolon at the end then save the file run the same Java oscope see we got the same output after modification of java file or Java program we must compile so compile again Java C first program. Java now run Java AR schools see one more line printed okay so in this video we have seen how to download and install Java jdk 21 and open2 2204 LDS version for more Java or Linux videos please subscribe my channel thank you
Info
Channel: r2schools
Views: 11,851
Rating: undefined out of 5
Keywords: Download and install Java on Ubuntu 22.04, How to install java on Ubuntu 20.04, How to install java on Ubuntu 22.04, How to install java on Ubuntu Server, How to install java on Ubuntu, Install Java 21 on Ubuntu, How to install java jdk 21 on Ubuntu, How to install java jdk on Ubuntu 20.04, How to install java jdk on Ubuntu 22.04, How to install java jdk on Ubuntu, Install java jdk 21 on Ubuntu, Java Installation on Ubuntu 22.04, Java jdk install on Ubuntu, java jdk 21 install
Id: NPHPmHk6Z5k
Channel Id: undefined
Length: 5min 11sec (311 seconds)
Published: Sun Dec 31 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.