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

What are Environment Variables?

Puzzle #35: can you make the sums of each column the same?

How to Start Analyzing the 2022 Formula 1 Pre-Season Testing Data

Unit testing in spring boot-basics

How to pick a programming language for your startup?

Download All Joe Biden’s tweets to csv file with Just 10 lines of Python Code

Agile and DevOps: It’s All About Culture

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

Main Classes and Interfaces for Multi-Threading in Java

Coding Standard in Java

Servlet Life Cycle — Java Programing

All new Java 8 — time API — LocalDate