Java Development Kit: How to Install And Setup Java JDK 11 On Linux

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • Java Development Kit: How to Install And Setup Java JDK 11 On Linux
    Do you want to know how to install the Java JDK 11 (Java SE Development Kit) on your Linux machine? Well, you're in the right place! I have created this tutorial showing you how to easily download and install it on your computer.
    Now if you are running a Windows PC, or a Mac, then click the links below to watch a video showing you how to do it on your platform.
    Windows: • How to Download and In...
    Mac OS X: • How to Download and In...
    Yes, I know I am that type of guy, I like being comprehensive and providing videos for everyone on all platforms.
    Please let me know what you thought of the video by commenting below, and also please let me know what topics you would like me to cover in future videos.
    If you're ready to look at the next coding-specific programming video, click on the link below to get redirected to the playlist for programming videos:
    • Programming Tutorials
    If you want to get some programming tips and pieces of advice, click on the link below to get redirected to the playlist for all programming tips:
    • Programming Tip of the...
    Consider subscribing by clicking on the Subscribe button right below the video.
    Where to find out more about me:
    My Video Courses
    learnprogramming.academy/cour...
    Twitter
    / timbuchalka
    Facebook
    / tim.buchalka

Komentáře • 70

  • @SCTproductionsJ5
    @SCTproductionsJ5 Před 4 lety

    Loved how you explained the acronyms!

  • @rockduds
    @rockduds Před 4 lety

    Thanks a lot Tim! Very simple and effective explanation.

  • @isaiah6970
    @isaiah6970 Před 4 lety +2

    Very good, thank you for contributing to the Linux Community.

  • @rajatagrahari6842
    @rajatagrahari6842 Před 3 lety

    Thanks I have managed to install "jdk-15.0.2" I have searched everywhere but this have solved my problem and 1010 should be typed as it is told don't worry its working.

  • @sweetjimmy
    @sweetjimmy Před 4 lety +2

    Thanks a million, sir! I owe you my life!

  • @shixuenchin1396
    @shixuenchin1396 Před 4 lety

    Really helpful, saved me tons of time

  • @elmehdichemaa7636
    @elmehdichemaa7636 Před 4 lety

    Thank you for your help sir!

  • @manufactured_reality
    @manufactured_reality Před 3 lety +1

    Thanks for the tutorial. May I ask you what the significance of '1010' is when you're executing the update-alternatives command?

  • @peakyblinders48
    @peakyblinders48 Před 4 lety +1

    I have done all the steps but when I run the command java --version .
    It give an error :
    bash: /usr/bin/java: cannot execute binary file: Exec format error.

  • @josivaldobatista1402
    @josivaldobatista1402 Před 4 lety

    Thanks, you help me so much!!! running on ubuntu 19.04 Disco Dingo

  • @zympf
    @zympf Před 4 lety

    this is the best method .. this way don't have to debug the apt commands .. can be used to install Corretto as well :)

  • @Spahija42
    @Spahija42 Před 5 lety

    This is awesome. Thank you for this.

  • @agustinbaigorria7032
    @agustinbaigorria7032 Před 3 lety

    Thank you very much you really help me!

  • @feromonxz
    @feromonxz Před 5 lety

    thanks, thanks, thanks a lot finaly i manage to install java 11, have a like and sub.

  • @skillato9000
    @skillato9000 Před 3 lety

    Hi, I have a problem, I previously installed an older version than java, now that I followed this tutorial step by step, when I check the version it's still stuck at 1.8.0_181, instead of the java JDK 14, what did I do wrong?

  • @surjagain
    @surjagain Před 5 lety

    Thanks for the tutorial.

  • @bannuranurag
    @bannuranurag Před 4 lety

    Beautiful!

  • @damercadoo
    @damercadoo Před 3 lety +1

    Hey guys for my case in linux mint it didnt work sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 1010, instead I had to use sudo update-alternatives --config java and there chose the option for jdk11 typing the number of the option and after that pressing enter

  • @Dragon-rx1el
    @Dragon-rx1el Před 3 lety

    Help im getting an error. I did everything like he did but if i type "java -version" (minute 6:42) it says "-bash /usr/bin/java: no authorization"

  • @rockduds
    @rockduds Před 4 lety

    this video is worth gold

  • @luisenriquerc
    @luisenriquerc Před 3 lety

    Thank you!

  • @amananand2120
    @amananand2120 Před 3 lety

    Heyy update-alternatives doesn't work on Manjaro (Arch Linux). So what should I use there?

  • @amalgafsi4321
    @amalgafsi4321 Před 3 lety

    thank you!

  • @walterdanielleon1090
    @walterdanielleon1090 Před 2 lety

    thanks, man !

  • @Kittycat87289
    @Kittycat87289 Před 4 lety +4

    Thank you Tim.
    I have a question, after I type sudo mv jdk-11/* /usr/lib/jvm/jdk-11/ i get a line saying
    Mv: cannot stat ‘jdk-11/*’ no such file or directory.
    My understanding is that it’s saying that folder jdk 11does not exist. I tried to make jdk-11 file twice but still no help

    • @vickensemerdjian
      @vickensemerdjian Před 4 lety

      if you downloaded a differrent jdk version, you will replace 11 with your version

  • @BoomBarryBoom
    @BoomBarryBoom Před 4 lety

    You may also want to enable the jshell command using the following: (your jdk version may vary, here I'm using 14.0.2) sudo update-alternatives --install "/usr/bin/jshell" "jshell" "/usr/lib/jvm/jdk-14.0.2/bin/jshell" 1010

  • @abduxalilraxmonberdiyev9425

    hi guys, in may case apdate-alternatives does not exist, what should I do

  • @vivekrai5042
    @vivekrai5042 Před 5 lety +1

    Hello there Tim, If you can upload videos on interview preparations then that would be a great help from your side.

  • @codermadushan
    @codermadushan Před 2 lety

    Thank you

  • @oceancity1042
    @oceancity1042 Před 3 lety

    Hi - getting on okay until 6.08
    Using Linux mint 17,1 Loading latest version JDK - 15
    Can send you screen shot
    Grateful for assistance

  • @lordjordan6469
    @lordjordan6469 Před 3 lety

    thanks sir

  • @chillbro2275
    @chillbro2275 Před 2 lety

    Nice nice!

  • @artykohl1118
    @artykohl1118 Před 4 lety

    The only way to make Eclipse work with Java is to use 1.8. 11 won't sync up on Ubuntu, Kali, Windows or Mint. Now, for some reason I can't get 1.8 (or Java 8) into the configuration on Ubuntu or Kali. I finally made it work on Mint and wrote a test program with Eclipse/Java 8. And everything works. Jar files, so all my graphics, Scenebuilder, Swing desginer, all work only on Mint. I had Java 8 configured in my Ubuntu Linux but also a Jdk11 downloaded. In the last update, all my Ubuntus, defaulted into JDK 11 and JDK8 won't appear on the list. (What is happening in the world??) It must have something to do with the "no more support for JDK8 in the New World Order," movement. So I assume Mint is fhe last frontier for JDK8 and should look forward to losing that too, the near future.

  • @ckhdsk
    @ckhdsk Před 3 lety

    Great

  • @prashlovessamosa
    @prashlovessamosa Před rokem

    Thanks

  • @JJTOPSMILE
    @JJTOPSMILE Před 3 lety

    do i have to download the compiler for the compiler program to be found using the command update alternatives command

  • @dysalgorithm
    @dysalgorithm Před 5 lety +3

    Hey Tim. Thanks for a great tutorial. I noticed that after I moved the unzipped files from my ~/Downloads folder to /usr/lib/jvm/jdk-11.0.2/, it kept my user permissions from Downloads. This might be OK, but I went ahead and changed permissions to root with a sudo chown -R root:root /usr/lib/jvm/jdk-11.0.2/*. Doing this made the permissions match the other java directories and files in the jvm directory. I also had to run sudo update-alternatives --config java and select my newly installed /usr/lib/jvm/jdk-11.0.2/bin/java so that java --version command displayed the right java version. Running update-alternatives borders on witchcraft and my release might be a little borked so others may not have these issues. Thanks again!

    • @TheLearnProgrammingChannel
      @TheLearnProgrammingChannel  Před 5 lety

      Thanks for the clarification - this might prove useful if others have a similar issue to you. I'm glad you got it up and working in the end.

    • @20shourya
      @20shourya Před 4 lety

      Cheers for this comment Pete, I had the same issue!

  • @ivangolyshev5869
    @ivangolyshev5869 Před 5 lety

    Hi Tim! Thanks for your work and tutorials. But I have a question about Oracle JDK and OpenJDK.
    1) Why do you use Oracle JDK? I read some info's that Oracle is not free for commercial projects. SO I decided to install OpenJDK.
    2) Does Oracle and Open JDK's have differences? Which is the best to use in education of JAVA? I mean will I have problems when I apply for a job with skills in OpenJDK?

    • @ivangolyshev5869
      @ivangolyshev5869 Před 5 lety

      So sorry for my inattentiveness... I found all answers in our last video about vendors of JDK czcams.com/video/zf-GOkc3Ht8/video.html

    • @TheLearnProgrammingChannel
      @TheLearnProgrammingChannel  Před 5 lety

      No problem! I have just updated my Java Masterclass to use Amazon Corretto as it's a great version of. the OpenJDK.

  • @brunofilgueiras3518
    @brunofilgueiras3518 Před 4 lety +1

    Finally, a tutorial that helped me out to install java on my Linux deepin *___*

  • @damienmolliere1441
    @damienmolliere1441 Před 5 lety

    Hi, i wanted to know if you may knew a way to make javafx work on linux ?

  • @gustacaru
    @gustacaru Před 2 lety

    Hello Teacher. I follow every single step and in the end, when I digit java -version, I got the message: "error on the exec format: java" .. something like java command is wrong. I really upset about that. I dont know what to do ):

    • @gustacaru
      @gustacaru Před 2 lety

      Look. I Fix it.
      I Dont know why, I got the score when I download the version 11.0.. In the first, I was trying with the 11.0.16 version..

  • @MrDahkilla
    @MrDahkilla Před 3 lety

    What are the commands for Oracle linux ?
    Thanks Tim!

  • @georgihaydukov6267
    @georgihaydukov6267 Před 5 lety

    Is there a difference that i did the same but with java 11.02 and also how do i set it up in eclipse? Btw the videos are awesome!

    • @TheLearnProgrammingChannel
      @TheLearnProgrammingChannel  Před 5 lety

      The same concept will also work for later versions of Java. Thanks for the kind words. I'll see if I can put up an Eclipse video soon

  • @frank_033
    @frank_033 Před 4 lety +1

    What is the next video that goes over proper installation? You refer to the "next video" but I don't know what that is. :)

    • @seabass6106
      @seabass6106 Před 3 lety

      its the next video in the course on udemy: www.udemy.com/course/java-the-complete-java-developer-course/

    • @deepakbhagat5458
      @deepakbhagat5458 Před 3 lety

      This video is for Advertisment only....

  • @mkmarkera9098
    @mkmarkera9098 Před 4 lety

    Where you got "Command 'java' not found..." in 5:32 I got:
    ~/Downloads$ java -version
    openjdk version "11.0.5" 2019-10-15
    OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
    OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)
    Why is that difference? :?
    After the whole process of installation, I got the following message: Failed to execute command "/usr/lib/jvm/java-11-oracle/bin/jconsole" (no such file or directory).
    Well, I guess I've done something wrong, although I followed your exact steps. xd

    • @rockduds
      @rockduds Před 4 lety

      You are using open jdk, he is teaching how to install the Oracle JDK (in some cases you need to use Oracle JDK) , so you must remove open jdk and install Oracle JDK like this tutorial.

  • @samalprasant123
    @samalprasant123 Před 5 lety

    Future Video of: Spring Security + Angular 7

  • @pierce9019
    @pierce9019 Před 3 lety

    doesn't work bud

  • @connordavis5086
    @connordavis5086 Před 3 lety

    F u k bro I have spent four hours trying to install this so I can get Ghidra to work. Why do linux programs have to be so effing difficult to install.