How To Install Oracle Java (JDK) On Ubuntu 22.04 LTS, Debian Linux

preview_player
Показать описание
In this video I am going to show you How to install Java JDK on Ubuntu 22.04 ( with JAVA_HOME ). Java installer .deb file comes with JRE and JDK. Java JDK Installation for Ubuntu, Debian, Linux Mint .. (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-20/bin/java 1

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

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

$ javac --version
javac 20

In this step-by-step tutorial, we'll show you how to install Oracle Java Development Kit (JDK) on Ubuntu 22.04 LTS and Debian Linux distributions. Oracle JDK is a popular choice for Java developers and provides a comprehensive set of tools and libraries for Java development.

Installing Java on your Linux system is essential for running Java applications and developing Java-based projects. Follow along as we guide you through the installation process, ensuring you have the necessary dependencies and prerequisites in place.

We'll cover all the necessary steps, from downloading the Oracle JDK package to configuring it as the default Java version on your system. Our tutorial provides clear instructions and commands to execute, making it accessible to both beginners and experienced users.

Make sure to subscribe to our channel for more informative tutorials on Java development and Linux. Get ready to unleash the power of Java on your Ubuntu 22.04 LTS or Debian Linux system. Watch now and start installing Oracle Java JDK today!

#JavaInstallation #OracleJDK #Ubuntu2204LTS #DebianLinux #JavaDevelopment #JavaProgramming #LinuxTutorials #StepByStepGuide
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!
Рекомендации по теме
Комментарии
Автор

thank you! just installed Debian 12 and looking for this!

wendevv
Автор

thank u very much. Was looking around the whole internet for the solution, finally works. Thank a lot

wsunkgd
Автор

Thanks man, great video and explanation.

nicolasevangelista
Автор

Thank You! So much I'm extremely thankful to you . Your guidance makes makes it possble do this difficult task . I 've tried too much tries from different sources but i can't do it . But only due to your guidance it's make it possible. Thank You.

adnanrasheed
Автор

Many thanks for the content. I wish you the best.

mattroddev
Автор

you really saved me, i feel like crying, i have been trying this for hours :)

princepetrelli
Автор

it works! thank you so much.. appreciate that

hendrasetiawan
Автор

iam loknath, this vedio is veryhelpful for me .

bsuygsn
Автор

thanks for this video, It is very helpful

Mad-Monkey-dev
Автор

not working i stuck with the installation of the package

bjcymrr
Автор

in using sudo update-alternatives --install, I get a prompt of how to use the command with other options instead

nkyampz
Автор

Command not found on steam os (even though it's debian base)😢

thiwankamunindradasa
Автор

Will these commands work for fedora linux as well

naughtyboy
Автор

What emulator are you using? Can I achieve this with userland?

ftdesigner
Автор

im using vscode so in 10:35 instead of gedit what should i wrote

blinkxblackpink
Автор

default .jdk is not working so i use just the .jdk and it install the latest java available

sudo apt install .jdk

khaizeralejo
Автор

Thankyo it is working in mx linux, tried of trying different method

rajnishsubedi
Автор

i have an error which is :
update-alternatives: error: alternative path /usr/lib/jvm/jdk-22/bin/java doesn't exist

ahmadxgame
Автор

Sir, I am installing JDK-22 on Ubuntu 22.0.4 version and after executing the 1st command i.e sudo update -alternative So i am getting an warning message called : forcing reinstallation of because link group java is broken. 👈🏻 That's the error

Er_IT_prashantjha
Автор

яндекс браузер с переводом просто супер

konstantinmezler