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

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:  Tutorial To Install Unity Desktop In Ubuntu 18.04 LTS
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

Best Tools To Create Your Own Custom Linux OS In 2023 Best Tools To Create Your Own Custom Linux OS In 2023 Linux
How To Fix ‘NTFS Partition Is In An Unsafe State’ Error In Linux How To Fix ‘NTFS Partition Is In An Unsafe State’ Error In Linux Fix
How To Use SCP Command To Securely Transfer Files How To Use SCP Command To Securely Transfer Files [2023] How To Ubuntu
How To Change Java Version In Linux [2023] How To Change Java Version In Linux [2023] How To Ubuntu
Linux Laptop With Ubuntu 20.04 Is Available To Buy At $1,099.99 Linux Laptop With Ubuntu 20.04 Is Available To Buy At $1,099.99 How To Ubuntu
How To Install NotepadQQ On Linux How To Install NotepadQQ On Linux [Updated] How To Ubuntu

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
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

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 [email protected]
  • SERVICE WRITER

    • Augusta, GA
    • Murphy Auto Group DBA MIRACLE TOYOTA
    • Full Time
  • Service Writer

    • Burbank, CA
    • Future Auto Service
    • Full Time
  • Powersports Service Department Service Writer

    • Bolivar, MO
    • Pitbull Powersports
    • Full Time
  • Specification Writer – Architectural Firm – Base Salary to 80k/year – Montgomery, AL

    • Montgomery, AL
    • AllSearch Professional Staffing
    • Full Time
  • Service Writer

    • Knoxville, TN
    • Hills Machinery - RJV Equipment
    • Full Time
  • Lead Data Scientist

    • Fairfax, VA (Remote)
    • Info Resume Edge
    • Full Time
  • Automotive Service Writer

    • Olive Branch, MS
    • Homer Skelton Hyundai
    • Full Time
  • Automotive Service Writer

    • Bellevue, WA
    • Finesse Auto
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme