Professional Documents
Culture Documents
How To Install Java On Ubuntu 22.04
How To Install Java On Ubuntu 22.04
How To Install Java On Ubuntu 22.04
com/install-java-ubuntu-22-04/
Ubuntu
Components of Java
The Java programming language is based on these three primary components:
–JVM: JVM or “Java Virtual Machine” is an engine that converts the Java byte
code into machine language.
MY LATEST VIDEOS
1 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
–JDK: JDK is an acronym for “Java Development Kit“, and it offers a software
development environment for building Java applications.
This write-up will discuss the procedure to install the latest Java version on
Ubuntu 22.04 using two different methods. So, let’s start!
66 28 16 25
How To Install Zlib How to Install How to Install How to install and How to install and
on Ubuntu 22.04 Bitcoin Core in… Metasploit… use gThumb on… use xpad on
2 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
Want to install OpenJDK on Ubuntu 22.04? If yes, then follow the below-given
procedure.
3 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
4 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
5 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
6 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
For the installation of Java SE Development Kit 18 on your Ubuntu 22.04 system,
check out the below-given procedure.
7 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
8 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
$ wget https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.deb
9 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
10 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
11 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
Now, write out the “source” command to execute the profile file “jdk18.sh”:
$ source /etc/profile.d/jdk18.sh
$ java -version
12 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
We have compiled two different methods for the installation of Java on Ubuntu
22.04. Select any of them according to your requirements.
Conclusion
To install the latest Java version on Ubuntu 22.04, either execute “$ sudo
apt install -y openjdk-18-jdk” or the “$ sudo apt install -y openjdk-18-jre”
command. You can also download the Java SE Development Kit from the
official page and install it with the help of the “$ sudo apt install ./jdk-
18_linux-x64_bin.deb” command. This write-up discussed two different methods
to install Java on Ubuntu 22.04.
13 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
Explore More
search text
Sharqa Hameed
I am a Linux enthusiast, I love to read Every Linux blog on the internet. I hold
masters degree in computer science and am passionate about learning and
teaching.
14 of 15 6/9/23, 13:50
How to Install Java on Ubuntu 22.04 https://linuxhint.com/install-java-ubuntu-22-04/
15 of 15 6/9/23, 13:50