How To Install latest Oracle Java JDK with JAVA_HOME On Ubuntu 20.04 LTS, Debian Linux | ArjunCodes

preview_player
Показать описание
How to install latest (Java 11, 16, 17 or 8) oracle Java JDK on Ubuntu 20.04 ( with JAVA_HOME ). Java installer .deb debian file file comes with JRE and JDK. Java JDK Installation for Ubuntu Operating sytem or any linux operating system like Linux Mint, Mx Linux, Deepin, AntiX, PureOS, Kali Linux, Parrot OS. JDK stands for Java SE Development Kit. JRE stands for Java Runtime Environment. Procedure is similar for Java 8, Java 11, Java 16, Java 17 or other newer versions.

Download Oracle Java Jdk :

Commands Used :

$ Java -version
$ ls /user/lib/jvm
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-16.0.1/bin/java 1
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-16.0.1/bin/javac 1
$ java -version
$ javac -version

For Java_Home :

$ sudo update-alternatives --config java
$ source /etc/environment
$ echo $JAVA_HOME

➡️:Java Playlist ArjunCodes :
-----------------------------------------------------------------------------------------------------------------------

➡️:React Playlist ArjunCodes :
-----------------------------------------------------------------------------------------------------------------------

➡️:Ubuntu Installation Playlist :
-----------------------------------------------------------------------------------------------------------------------

➡️:SpringBoot Playlist ArjunCodes :

-----------------------------------------------------------------------------------------------------------------------

➡️:Web Playlist ArjunCodes :

-----------------------------------------------------------------------------------------------------------------------

➡️:Github Playlist ArjunCodes :
-----------------------------------------------------------------------------------------------------------------------

Follow me on :

#java #javaprogramming #javatutorialforbeginner #Ubuntu
Рекомендации по теме
Комментарии
Автор

Thank you, I currently use MX Linux which is based on Debian and Ubuntu so this was very helpful. I have tried so much to install it and finally got it done thanks to you!

ninfeaaaa
Автор

Muchas gracias tus vídeos me están ayudando muchísimo, mucho éxito para que sigas creciendo y poder ayudar a otras personas como a mi

brayanavimael
Автор

After executing : ls /user/lib/jvm
It is saying- ls: cannot access '/user/lib/jvm': No such file or directory

badsanta
Автор

Bro i have downloaded vs code and it is necessary to install JDK in ubuntu to run codes.
-- will my jdk works in Vs code properly ??
Plz reply brother

shivam.wankhede
Автор

odd, all i have to do is double click the .deb file to install it with linux. (maybe just chromebook)

ANewStoryDev
Автор

java become harder and harder to be installed every year.

zigzag
Автор

Sudo k baad kya likhna h kya press krna h apne aap se baat krr rhe ho.. Video kyu bnayi ye

eclinicalWorks
Автор

update-alternatives: error: alternative path /usr/lib/jvm/jdk-20/java doesn't exist error min 2:50

vekkan
visit shbcf.ru