[How to] Install Java JRE/JDK & configure multiple version | OpenJDK | Ubuntu 20.04 | (2021)

Channel:
Subscribers:
6,660
Published on ● Video Link: https://www.youtube.com/watch?v=dJOu2Bc-Nt0



Category:
Guide
Duration: 7:46
2,580 views
34


Hi, in this video I will show you How to Install Java JRE and JDK, and how to configure multiple java versions in Ubuntu 20.04.
We will see How to install various versions of the Java Runtime Environment JRE and the Java Developer Kit JDK using apt.
we will then select the version you wish to use for your projects.
we will install OpenJDK.
We will use the OpenJDK on Ubuntu 20.04.

👉 Follow me on Facebook ✅ : https://www.facebook.com/TechnIN
📢 Make sure to Subscribe, ✅ so you don't Miss out on my future Videos 📽🎞 ▶ https://www.youtube.com/channel/UCWQAnj6I7VG25xo8B-1mI1g/?sub_confirmation=1 💯✅

00:00 Introduction
00:44 Install Java JRE
02:02 Configure multiple Java JRE versions
04:02 Install Java JDK
04:36 Configure multiple Javac versions
05:55 Setting the JAVA_HOME


👉 How to Clone a computer over Network with Clonezilla :
🎞 ▶ https://youtu.be/F7GqftxCoHk

👉 How to Clone disk to disk with Clonezilla :
🎞 ▶ https://youtu.be/6hXKpnitzrw

👉 How to Create Multi Bootable USB from ISO With Ventoy on Ubuntu 20.04:
🎞 ▶ https://youtu.be/4BsHYXXsUiQ

👉 How to Create Windows 10 Bootable USB on Ubuntu 20.04 | BIOS | UEFI :
🎞 ▶ https://youtu.be/rJQk9KVekFI

👉 How to Install Windows 10 after Ubuntu 20.04:
🎞 ▶ https://youtu.be/o-2GopsJrIE

👉 How to Install VirtualBox 6.1 on Ubuntu 20.04:
🎞 ▶ https://youtu.be/xOerstgYC7Y

👉 How to Install OS and Configure It on VirtualBox:
🎞 ▶ https://www.youtube.com/playlist?list=PLeiTQKKRIIRrFKzzCtSeX5CJYeyWlFyQW

👉 How to Install and Secure an FTP Server:
🎞 ▶ https://www.youtube.com/playlist?list=PLeiTQKKRIIRoKMuCrsb80Rx2E1F2g6RbT


#OpenJDK
#JRE
#JDK


Java and the JVM (Java’s virtual machine) are required for many kinds of software.

Install the JRE (Java Runtime Environment):
- Update the package index: sudo apt update
- Check java is installed: java -version
- Install Java 8 : sudo apt install openjdk-8-jre-headless

For multiple Java installations on one server
- sudo update-alternatives --config java.
Choose the number associated with the Java version to use it as the default, or press ENTER to leave the current settings in place.

Install the JDK (Java Developer Kit):
- sudo apt install openjdk-8-jdk-headless

For multiple Javac installations on one server
- sudo update-alternatives --config javac.
Choose the number associated with the Javac version to use it as the default, or press ENTER to leave the current settings in place.

Many programs written using Java use the JAVA_HOME environment variable to determine the Java installation location.
To set this environment variable, first determine where Java is installed. Use the update-alternatives command.
- sudo update-alternatives --config java.

Copy the path from your preferred installation but do not include the bin/ portion of the path.
- Open /etc/environment using vi or your favorite text editor.
- At the end of this file, add the JAVA HOME variable.
- Reload this file to apply the changes: source /etc/environment
- echo $JAVA_HOME


✍✍✍ Let me know what you think of this video in the comments ✍✍✍
📢 Make sure to Subscribe ✅ so you don't Miss out on my future Videos 📽 🎞 ▶ https://www.youtube.com/channel/UCWQAnj6I7VG25xo8B-1mI1g/?sub_confirmation=1 💯✅

Thanks for watching 📽 🎞 !!!




Other Videos By TechIN


2021-05-22How to Fix Failed to Install File Not Supported | Ubuntu | DEB (2021)
2021-05-08How to Install Windows 10 After Ubuntu 20.10 | Dual Boot | UEFI | Step By Step (2021)
2021-05-06How to Find your Windows 10 Product Key using CMD (2021)
2021-05-01How to Upgrade Ubuntu 20.04 to 21.04 (2021)
2021-04-27How to Extend Volume greyed out in Windows 10 | Gparted | Without loss Data | Step By Step (2021)
2021-04-25How to Remove Ubuntu from Dualboot windows 10 | UEFI | Step By Step (2021)
2021-04-17How to Install linux without cd or usb | Dualboot | UEFI | Step By Step (2021)
2021-03-20[How to] Change Desktop Theme | Icons Theme | Ubuntu 20.04 (2021)
2021-03-13[How to] Create Windows 10 Bootable USB | Rufus | UEFI | Step By Step (2021)
2021-03-08[How to] Install Redhat Enterprise Linux 8 (RHEL 8) | VMware | Step by Step (2021)
2021-03-01[How to] Install Java JRE/JDK & configure multiple version | OpenJDK | Ubuntu 20.04 | (2021)
2021-02-14[How to] Clone computer | Over Network | Clonezilla | Step by Step (2021)
2021-02-06[How to] Clone Disk to Disk | Clonezilla | Step by Step (2021)
2021-01-27[How to] Fix VirtualBox ERROR : RTR3InitEX Failed with RC=-1912 | Ubuntu 20.04
2021-01-23[How to] Install VirtualBox | Ubuntu 20.04 (2021)
2020-12-31[How to] Create Multi Bootable USB from ISO | Ventoy | Ubuntu 20.04 | Very Easy(2021)
2020-12-15[How to] Convert MBR to GPT in Ubuntu 20.04 | Without Data Loss | Very Easy | (2021)
2020-12-08[How to] Create Windows 10 Bootable USB on Ubuntu 20.04 | BIOS | UEFI | Step By Step (2021)
2020-12-03[How to] Install Windows 10 After Ubuntu 20.04 | Dual Boot | UEFI | Step By Step (2021)
2020-11-22[How To] Install Ubuntu Server 20.04 on Vmware ESXI | Step-by-Step (2020)
2020-11-18[How To] Configure FTP Server (VSFTPD) on Ubuntu 20.04 | Upload to a Web Server (2020) #3



Tags:
install Java
install openjdk
install Java JDK
install Java JRE
setting JAVA_HOME
install Java on ubuntu
install Java JDK on ubuntu
install Java JRE on ubuntu
setting JAVA_HOME on ubuntu
how to install Java
how to install Java JDK
how to install Java JRE
how to install openjdk
openjdk
openjdk jre
openjdk jdk
Java Development Kit
JAVA_HOME
Java JDK on ubuntu
Java JRE on ubuntu
Java JDK
Java JRE
JRE
JDK
Java Runtime Environment
Java Developer Kit
Techin