Java Development Kit: How to Install And Setup Java JDK 11 On Linux
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
Loved how you explained the acronyms!
Thanks a lot Tim! Very simple and effective explanation.
Very good, thank you for contributing to the Linux Community.
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.
Thanks a million, sir! I owe you my life!
Really helpful, saved me tons of time
Thank you for your help sir!
Thanks for the tutorial. May I ask you what the significance of '1010' is when you're executing the update-alternatives command?
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.
Thanks, you help me so much!!! running on ubuntu 19.04 Disco Dingo
this is the best method .. this way don't have to debug the apt commands .. can be used to install Corretto as well :)
This is awesome. Thank you for this.
Thanks Jeff!
Thank you very much you really help me!
thanks, thanks, thanks a lot finaly i manage to install java 11, have a like and sub.
Thanks for the support, I am glad it helped!
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?
Thanks for the tutorial.
You are welcome!
Beautiful!
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
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"
this video is worth gold
Thank you!
Heyy update-alternatives doesn't work on Manjaro (Arch Linux). So what should I use there?
thank you!
thanks, man !
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
if you downloaded a differrent jdk version, you will replace 11 with your version
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
hi guys, in may case apdate-alternatives does not exist, what should I do
Hello there Tim, If you can upload videos on interview preparations then that would be a great help from your side.
Thanks, I think interview preparations/techniques is an excellent thing to cover!
Thank you
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
thanks sir
Nice nice!
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.
Great
Thanks
do i have to download the compiler for the compiler program to be found using the command update alternatives command
ooh i got it thank you Sir!
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!
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.
Cheers for this comment Pete, I had the same issue!
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?
So sorry for my inattentiveness... I found all answers in our last video about vendors of JDK czcams.com/video/zf-GOkc3Ht8/video.html
No problem! I have just updated my Java Masterclass to use Amazon Corretto as it's a great version of. the OpenJDK.
Finally, a tutorial that helped me out to install java on my Linux deepin *___*
Hi, i wanted to know if you may knew a way to make javafx work on linux ?
Yes, it does work with Linux - you can download it for JDK 11 here gluonhq.com/products/javafx/
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 ):
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..
What are the commands for Oracle linux ?
Thanks Tim!
I think that are the sames commands
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!
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
What is the next video that goes over proper installation? You refer to the "next video" but I don't know what that is. :)
its the next video in the course on udemy: www.udemy.com/course/java-the-complete-java-developer-course/
This video is for Advertisment only....
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
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.
Future Video of: Spring Security + Angular 7
That sounds like a fun video (or two). I'll see what I can do in the future.
@@TheLearnProgrammingChannel Thank you for the response. I will wait for your awesome videos now for free. :-)
No problem!
doesn't work bud
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.