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!

Комментарии • 60

  • @wendevv9706
    @wendevv9706 Год назад +9

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

  • @Birwi
    @Birwi 10 месяцев назад +2

    Worked perfectly, thank you

  • @user-ws6un1kg9d
    @user-ws6un1kg9d 6 месяцев назад +1

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

  • @nicolasevangelista1312
    @nicolasevangelista1312 9 месяцев назад +1

    Thanks man, great video and explanation.

  • @adnanrasheed5494
    @adnanrasheed5494 3 месяца назад +1

    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.

  • @aureocosta4994
    @aureocosta4994 10 месяцев назад

    Thank you very much! helped me a lot.

  • @user-lf7ql3hp7r
    @user-lf7ql3hp7r 11 месяцев назад

    Thank you! This video is very helpful

  • @adriano.goncalves
    @adriano.goncalves 10 месяцев назад +1

    Perfect!!!! 😉👍

  • @ve1kkan
    @ve1kkan 11 месяцев назад

    gracias este video si me funcionó.

  • @hendrasetiawan7220
    @hendrasetiawan7220 5 месяцев назад

    it works! thank you so much.. appreciate that

  • @mattroddev
    @mattroddev 7 месяцев назад

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

  • @gabo182b
    @gabo182b 11 месяцев назад

    Great video, thank you so much

  • @adrianrodriguez80
    @adrianrodriguez80 9 месяцев назад

    perfect!, thanks sr. :D

  • @princepetrelli5608
    @princepetrelli5608 3 месяца назад

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

  • @Mad-Monkey-dev
    @Mad-Monkey-dev 8 месяцев назад

    thanks for this video, It is very helpful

  • @user-bs3uy6gs2n
    @user-bs3uy6gs2n 4 месяца назад

    iam loknath , this vedio is veryhelpful for me .

  • @jeansampaio8689
    @jeansampaio8689 11 месяцев назад

    Thank you!😊

  • @jmw1982blue
    @jmw1982blue 11 месяцев назад

    Thanks! Comment for the algorithm.

  • @mateor7849
    @mateor7849 10 месяцев назад

    thank you so much!!

  • @zzz.12M
    @zzz.12M 6 месяцев назад

    thanks! it worked for me

  • @andri3912
    @andri3912 Месяц назад

    thank you brother its worked

  • @manobrodeful
    @manobrodeful 10 месяцев назад

    thank you

  • @mahamatissaahmat7468
    @mahamatissaahmat7468 5 месяцев назад

    Thank you brother

  • @oanshee2462
    @oanshee2462 Год назад

    Thanks

  • @valentino.digiannantonio
    @valentino.digiannantonio 5 месяцев назад

    Thanks mate!!

  • @nxtym_ae
    @nxtym_ae 5 месяцев назад

    Thanks bro

  • @rajnishsubedi4265
    @rajnishsubedi4265 11 месяцев назад +1

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

  • @Codeing-di3yf
    @Codeing-di3yf 2 месяца назад

    ♥♥

  • @user-bj6cy4mr9r
    @user-bj6cy4mr9r 9 месяцев назад +4

    not working i stuck with the installation of the package

  • @MachBroken
    @MachBroken 10 месяцев назад

    Thanks man!

  • @Leonardolsv
    @Leonardolsv Год назад

    thank you!

  • @nkyampz
    @nkyampz 2 месяца назад

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

  • @ftdesigner91
    @ftdesigner91 9 месяцев назад

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

  • @jubairahmedsiam6280
    @jubairahmedsiam6280 11 месяцев назад

    Great

  • @risvank2726
    @risvank2726 Год назад

    Thank you

  • @thiwankamunindradasa3493
    @thiwankamunindradasa3493 10 месяцев назад

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

  • @saurabhgiri7611
    @saurabhgiri7611 Год назад

    Thankyou

  • @ImBary
    @ImBary 10 месяцев назад

    Thanks :)

  • @naughtyboy5256
    @naughtyboy5256 6 месяцев назад

    Will these commands work for fedora linux as well

  • @arunavabasak8330
    @arunavabasak8330 9 месяцев назад

    Thank you.

  • @ZahinAbdullah
    @ZahinAbdullah 10 месяцев назад

    thanks a lot

  • @konstantinmezler5238
    @konstantinmezler5238 10 месяцев назад

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

  • @blinkxblackpink8445
    @blinkxblackpink8445 2 месяца назад

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

  • @khaizeralejo
    @khaizeralejo Месяц назад

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

  • @ahmadxgame8885
    @ahmadxgame8885 2 месяца назад +1

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

  • @Sumit-qk9qq
    @Sumit-qk9qq 9 месяцев назад

    Thanks sir🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

  • @Er_IT_prashantjha
    @Er_IT_prashantjha 3 месяца назад

    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

    • @valen2765
      @valen2765 3 месяца назад

      i'm getting the same error. Have you found a solution?

  • @GodrickTheGrafted123
    @GodrickTheGrafted123 2 месяца назад

    wait so how do i now open java

  • @ahamanandhan
    @ahamanandhan 7 месяцев назад

    can i install jdk21 in 22.04 in the same way

  • @abrarshakhi
    @abrarshakhi 7 месяцев назад

    How do you have a notepad++ on linux?

  • @DejeneSamuel
    @DejeneSamuel 7 месяцев назад

    it is not work for jdk-21

    • @zzz.12M
      @zzz.12M 6 месяцев назад

      I think it works now, it did let me

  • @chubedanedit
    @chubedanedit 10 месяцев назад

    I can't use commands in video with debian linux

  • @user-qy9xb6mr5n
    @user-qy9xb6mr5n 11 месяцев назад

    I don't understand the part where editor part.

  • @mensagensdevidaeesperanca9965
    @mensagensdevidaeesperanca9965 5 месяцев назад +1

    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

  • @dankedan
    @dankedan 15 дней назад

    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