How to install Java on Ubuntu with apt
HTML-код
- Опубликовано: 21 авг 2024
- Want to install Java on Ubuntu in the fastest way possible? Just use Ubuntu apt to install Java with the default JDK, and the installation will go quickly and without issue.
The only drawback? You may not get the latest version of Java installed on Ubuntu. Right now, with Ubuntu 22, Java 11 is the default JDK installed with apt. That's a bit behind the times because Java 17 is the latest long term support (LTS) release.
But if you just need to run Java applications or compile some Java code, this is the best way to setup Java on Ubuntu. It's fast, it's easy, and you'll get Java installed on Ubuntu quickly and easily.
Searched so many videos and googled literally for 1 hour. But could not find the resolve until I found this vid. Thank you so much.
That's so great to hear!
What are you using Java for?
Hi Cameron! You probably do not know how much you helped me today. I am a beginner on Linux, and I had to hard reset my Linux two times, because I was failing at Java installation. In the first hard reset I choose a easier Linux Distro. And your video helped me to install Java and set as $JAVA_HOME. Anyway, I wish that Jesus bless you and, thanks for helping us!
Super happy I was able to help you out!
It all gets easier from here!
Great video but I believe that you're supposed to write the JAVA_HOME variable without the /bin/java part
Did I?
Thanx
Glad I could help!
This is great video. Worked like ice for me. Thank you.
Glad this still works!
I'll be updating the Ubuntu and the JDK for the Java 21 release later next week!
OMD THANK YOU I AM NEW TO UBUNTU AKA LINUX THANK YOU
sorry may ask you a question. When i type sudo nano /etc/enviorment, it opens nano but there is no PATH and when i put JAVA_HOME and exeute echo JAVA_HOME, it displays command not found
The JAVA_HOME variable in the "/etc/environment" file should point to the directory containing the Java installation, not directly to the "java" executable.
Therefore, the correct configuration would be:
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
Thank you!!
Always here to help. Even if I am a bit slow on the replies.
sir please at the GNU nano i receive a permission denied message please help
Thank you SO MUCH
Thank you
How to install jdk 15?
2024 mein kaun kaun dekh rahe ho!?? 😅
Well done
Great tutorial! Дякую!
cheers great video
00:46 default jdk