How to install OpenJDK 10.0.1 on Ubuntu 18.04
To install OpenJDK 10.0.1 on Ubuntu 18.04
Java is a cross-platform program and it's used by several developers to build applications and websites. Due to its speed, reliability, and safety. Currently, Java 11, the latest version of the program is gaining more popularity. After several months of testing, Java 10 was finally rolled out in September 2018 and is available on all platforms with newer features and improvements.
Installation
Update your system repository
root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [129 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2,456 B]
Get:8 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [142 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [105 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [18.0 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [34.3 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [84.4 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [84.5 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [120 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [120 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [190 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,100 B]
Fetched 1,276 kB in 5s (277 kB/s)
Reading package lists... Done
Install OpenJDK 11 package from the terminal using the following command.
root@linuxhelp1:~# apt-get install openjdk-11-jdk -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap linux-headers-4.15.0-20 linux-headers-4.15.0-20-generic
linux-image-4.15.0-20-generic linux-modules-4.15.0-20-generic
linux-modules-extra-4.15.0-20-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
.
.
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ca-certificates (20180409) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
Check the version of Java by making use of the following command.
root@linuxhelp1:~# java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
with this, the method to install OpenJDK 10.0.1 Ubuntu 18.04 comes to an end.
Comments ( 0 )
No comments available