How to Install Java on Ubuntu Linux

preview_player
Показать описание
In this video I am going to show you How to install Java JDK 14 on Ubuntu 20.04 ( with JAVA_HOME ). Java installer .msi file comes with JRE and JDK. Java JDK Installation for Microsoft Windows (64-bit). JDK stands for Java SE Development Kit. JRE stands for Java Runtime Environment.

1. Download Java
Open your web browser
Click on button “ JDK download ” for Java SE update 4.
Accept oracle license agreement
Find and click on the correct jdk download link right for your operating system to download
Save the file to disk
2. Install Java

$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-14/bin/java 1

$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-14/bin/javac 1

$ java --version
java 14 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

$ javac --version
javac 14

JavaJDK#Javatutorialforbeginners #Javatutorial #Javaprogramming #Javaprogrammingtutorial #Javabasicsforbeginners #Ubuntu #Debian #Linux
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

That was exactly what I needed. I got it done on my Kubuntu laptop except with Java version 15. You did a great job explaining all this. Now I know a lot more than before. Thank you for making this video.

lukedrillbrain
Автор

Mine terminal keep on saying DPKG error install needs at least one package archive file argument!!!

subinbista
Автор

hello i am trying but the command sudo update-alternatives --install /usr/bin/java java 1 isn't working

rafatrex
Автор

Sir When I tried to set the path of JAVA_HOME Path it Saves And Showing an error like this

gedit:9916): Tepl-WARNING **: 21:50:11.216: GVfs metadata is not supported. Fallback to TeplMetadataManager. Either GVfs is not correctly installed or GVfs metadata are not supported on this platform. In the latter case, you should configure Tepl with --disable-gvfs-metadata.

And i checked it to see that the path has set or not showing like this:
$ source /etc/environment
JAVA_HOME: command not found
Please help me out here waiting for reply

vinaysagar
Автор

I got mad I just want to install jre not jdk

veerakumar
visit shbcf.ru