How To Install Oracle Java (JDK) On Ubuntu 22.04 LTS, Debian Linux
HTML-код
- Опубликовано: 11 июн 2023
- 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
Type URL: www.oracle.com/java/technolog... to go to Oracle download page. This will lead you JAVA JDK download page
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 dpkg -i jdk-20_linux-x64_bin.deb
$ 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 ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
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!
Worked perfectly, thank you
thank u very much. Was looking around the whole internet for the solution, finally works. Thank a lot
Thanks man, great video and explanation.
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.
Thank you very much! helped me a lot.
Thank you! This video is very helpful
Perfect!!!! 😉👍
gracias este video si me funcionó.
it works! thank you so much.. appreciate that
Many thanks for the content. I wish you the best.
Great video, thank you so much
perfect!, thanks sr. :D
you really saved me, i feel like crying, i have been trying this for hours :)
thanks for this video, It is very helpful
iam loknath , this vedio is veryhelpful for me .
Thank you!😊
Thanks! Comment for the algorithm.
thank you so much!!
thanks! it worked for me
thank you brother its worked
thank you
Thank you brother
Thanks
Thanks mate!!
Thanks bro
Thankyo it is working in mx linux, tried of trying different method
♥♥
not working i stuck with the installation of the package
Thanks man!
thank you!
in using sudo update-alternatives --install, I get a prompt of how to use the command with other options instead
What emulator are you using? Can I achieve this with userland?
Great
Thank you
Command not found on steam os (even though it's debian base)😢
Thankyou
Thanks :)
Will these commands work for fedora linux as well
Thank you.
thanks a lot
яндекс браузер с переводом просто супер
im using vscode so in 10:35 instead of gedit what should i wrote
default .jdk is not working so i use just the .jdk and it install the latest java available
sudo apt install .jdk
i have an error which is :
update-alternatives: error: alternative path /usr/lib/jvm/jdk-22/bin/java doesn't exist
me too
Thanks sir🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Sir, I am installing JDK-22 on Ubuntu 22.0.4 version and after executing the 1st command i.e sudo update -alternative --install..... So i am getting an warning message called : forcing reinstallation of alternative/use/lib/jvm/jdk-22-oracle-x64/bin/java because link group java is broken. 👈🏻 That's the error
i'm getting the same error. Have you found a solution?
wait so how do i now open java
can i install jdk21 in 22.04 in the same way
How do you have a notepad++ on linux?
it is not work for jdk-21
I think it works now, it did let me
I can't use commands in video with debian linux
I don't understand the part where editor part.
For me didn't work, it's throwing this error (my folder's name is jdk-21-oracle-x64):
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21-oracle-x64/bin/java 1
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/jdk-21-oracle-x64/bin/java because link group java is broken
Same here but this code works for me
$ sudo dpkg -i jdk-21_linux-x64_bin.deb
me too
version 22
sudo update-alternatives --install usr/bin/java java usr/lib/jvm/jdk-22-oracle-x64/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-22-oracle-x64/bin/javac 1