Install Oracle Java JDK in Ubuntu 20.04 LTS

Install Java Jdk
Download Oracle Java Jdk :  https://www.oracle.com/java/technologies/javase-downloads.html

Commands Used :

 $ Java -version 
$ sudo dpkg -i jdk-version.deb
$ 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

Go through this video for complete instruction for Java JDK installation with JAVA_HOME

--

--

--

Learn Code with Fun.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting Started with Programming

https://downthecode.netlify.com

How DevOps is making the financial services industry a tech pacesetter

Screenshot testing in Espresso

Building an Android app — Part 1

laptop with mobile

Funnel charts with Python

[new version]2nd LeetCode: readBinaryWatch

Amazon Online Assessment Code Challenge Experience

Back to the Basics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code With Arjun

Code With Arjun

Learn Code with Fun.

More from Medium

Model Question Solution Java

Polymorphism in JAVA

Spring MVC and Architecture

How to Save Object State in Java