Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
How to Install Java On Ubuntu 22.04 LTS

How to Install Java On Ubuntu 22.04 LTS

Posted on January 5, 2022June 2, 2022 By admin No Comments on How to Install Java On Ubuntu 22.04 LTS

This tutorial post will help you to install Java on your Ubuntu 22.04 LTS. Java is the most popular object-oriented programming language. There are multiple applications required for your system that required Java on your system. Here we will install Java (OpenJDK 11 and OpenJDK 8)  or Oracle Java 14.

Install Java on Ubuntu 22.04 LTS

Java 11 is the latest LTS version that is available for installation. At first, we need to install JRE or Java runtime environment. The default Ubuntu packages repositories contain the packages for the OpenJDK 11. The default repository also contains OpenJDK 8 previous stable release packages.

The JDK packages provide the full Java development libraries, helpful for the development systems. To run any Java application, you just needed a Java runtime environment (JRE).

1. Install Java 11 on Ubuntu 22.04 LTS

Run the following commands to install OpenJDK 11 package on Ubuntu 22.04 LTS.

sudo apt update
sudo apt install openjdk-11-jdk

Once the installation is complete, you can verify it by checking the Java version:

java -version

openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)

OpenJDK 11 has been installed.

Now run the following command to install OpenJDK 8 Ubuntu 22.04 LTS.

2. Install Java 8 on Ubuntu On Ubuntu 22.04 LTS.

Run the below command to install OpenJDK 8 package on Ubuntu 22.04 LTS.

sudo apt update
sudo apt install openjdk-8-jdk

3. Install Oracle Java 14 On Ubuntu 22.04 LTS.

Run the following command to download the Debian file using the command line.

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/14.0.1+7/664493ef4a6946b186ff29eb326336a2/jdk-14.0.1_linux-x64_bin.deb"

Or download the .deb package from the official download page.  Once you download the Debian file, install it on your system using the command below:

sudo dpkg -i jdk-14.0.1_linux-x64_bin.deb

Conclusion

This post is specially designed for the beginner level of Linux users or the people who are installing java for the first time on Ubuntu. In this tutorial, you have learned about the installation of Java on the Ubuntu Ubuntu 22.04 LTS. Please let us know if there is any broken link or error on this page.

  • How To Install Nvidia Drivers On Ubuntu 22.04 LTS
READ More Relevant Stuff:  Download Ubuntu 19.04 Disco Dingo Beta, Released For Testing
How To Ubuntu Tags:ubuntu, Ubuntu 22.04 LTS

Post navigation

Previous Post: Ubuntu 22.04 LTS Schedule For April 21, 2022 | Upcoming Linux Distro In 2022
Next Post: Linux Mint 20.3 Is Now Available To Download

Related Posts

Install NVIDIA Drivers On Debian 11 Install NVIDIA Drivers On Debian 11 [Updated] Debian
How To Fix GRUB Not Showing In A Dual-Boot Setup How To Fix GRUB Not Showing In A Dual-Boot Setup How To Ubuntu
Linux For Students: Must-Have Apps for Effective Education Linux For Students: Must-Have Apps for Effective Education How To Ubuntu
How To Install VS Code Editor On Ubuntu 22.04 LTS [Multiple Methods] How To Install VS Code Editor On Ubuntu 22.04 LTS [Multiple Methods] How To Ubuntu
How To Upgrade Linux Kernel Linux Kernel 5.8 Reaches End of Life, Better Upgrade To Latest Version How To Ubuntu
How To Fix Busybox Initramfs Error On Ubuntu [2023] How To Fix Busybox Initramfs Error On Ubuntu [2023] Fix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • New Job Search October 10, 2025
  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at info@itsubuntu.com
  • Writer/Journalist Internship

    • Ellensburg, WA
    • The Borgen Project
    • Internship
  • Remote Federal Appellate Brief Writer, Performance-Based Pay

    • East Brunswick, NJ
    • National Organization of Social Security Claimants' Represen...
    • Full Time
  • Principal Data Scientist: Associate AI experience

    • Sunnyvale, CA
    • Walmart
    • Full Time
  • Solutions Architecture Senior Advisor

    • Dallas, TX
    • NTT DATA
    • Full Time
  • Azure Architect

    • Remote
    • Openkyber
    • Full Time
  • Azure Architect

    • North Carolina
    • Openkyber
    • Full Time
  • Azure Infrastructure

    • Avon Lake, OH
    • Staffingine LLC
    • Temporary
  • Azure Engineer

    • Iselin, NJ
    • HAN Staffing
    • Full Time

Copyright © 2026 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme