How To Install OpenJDK 11 On Debian 11

In this short article we will learn how to install Java (OpenJDK) 11 on Debian 11 (DebianBullseye) operating system. OpenJDK 11 is an open-source implementation of the Java SE 11 Platform. It is a popular choice for developing and running Java applications because it is free, open-source, and maintained by a large community of developers. OpenJDK 11 includes a complete set of Java Development Kit (JDK) tools for developing, testing, and deploying Java applications.

Here are some of the key features of OpenJDK 11:

  • Performance improvements: OpenJDK 11 includes performance improvements and optimizations that make Java applications run faster and more efficiently.
  • Security enhancements: OpenJDK 11 includes enhanced security features and improvements to help protect Java applications from security vulnerabilities and attacks.
  • Support for new Java language features: OpenJDK 11 includes support for new Java language features, including local variable type inference and enhanced Unicode support.
  • Platform independence: Java applications developed with OpenJDK 11 can run on any platform that supports Java, including Windows, macOS, Linux, and many others.
  • Compatibility with existing Java applications: OpenJDK 11 is designed to be backward-compatible with existing Java applications, making it easy to upgrade to the latest version of Java.

To install OpenJDK 11 on Debian system, we can follow these general steps:

  1. Update Debian 11 system
  2. Install OpenJDK 11
  3. Verify the installation

1. Update Debian 11 System

Before installing OpenJDK 11, it’s a good idea to update our system to ensure that we have the latest security patches and updates. We can do this by running the appropriate command Debian 11 system.

$ sudo apt update

Output :

ramansah@otodiginet:~$ sudo apt update
Hit:1 http://ftp.debian.org/debian stretch-backports InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease 
Get:3 http://deb.debian.org/debian bullseye InRelease [113 kB] 
Hit:4 http://deb.debian.org/debian-security bullseye-security InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Get:6 http://deb.debian.org/debian bullseye-proposed-updates InRelease [44.4 kB]
Get:7 http://deb.debian.org/debian bullseye/main Sources [8,612 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 Packages [8,178 kB] 
Get:9 http://deb.debian.org/debian bullseye/main Translation-en [6,241 kB] 
Get:10 http://deb.debian.org/debian bullseye/main amd64 DEP-11 Metadata [4,049 kB] 
Get:11 http://deb.debian.org/debian bullseye/main DEP-11 48x48 Icons [3,478 kB] 
Get:12 http://deb.debian.org/debian bullseye/main DEP-11 64x64 Icons [7,315 kB] 
Fetched 37.9 MB in 37s (1,022 kB/s) 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
ramansah@otodiginet:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
krb5-locales libapr1 libbluray2 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0
python3-reportbug reportbug
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,324 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
. . .
Unpacking libbluray2:amd64 (1:1.2.1-4+deb11u1) over (1:1.2.1-4) ...
Setting up libapr1:amd64 (1.7.0-6+deb11u1) ...
Setting up krb5-locales (1.18.3-6+deb11u1) ...
Setting up python3-reportbug (7.10.3+deb11u1) ...
Setting up libbluray2:amd64 (1:1.2.1-4+deb11u1) ...
Setting up reportbug (7.10.3+deb11u1) ...
Processing triggers for libc-bin (2.31-13) ...
Processing triggers for man-db (2.9.4-2) ...

2. Installing OpenJDK 11

Once your system is up to date, you can install OpenJDK 11 by running the appropriate command for your Linux distribution. On Debian 11 we can run “sudo apt-get install openjdk-11-jdk” to install the OpenJDK 11 JDK. We will submit the following command line :

$ sudo apt-get install openjdk-11-jdk

Output :

ramansah@otodiginet:~$ sudo apt-get install openjdk-11-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
ca-certificates-java java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev
libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless x11proto-dev xorg-sgml-doctools
xtrans-dev
Suggested packages:
default-jre libice-doc libsm-doc libx11-doc libxcb-doc libxt-doc openjdk-11-demo openjdk-11-source
visualvm fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ca-certificates-java java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev
libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless x11proto-dev
xorg-sgml-doctools xtrans-dev
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 264 MB of archives.
After this operation, 414 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://deb.debian.org/debian bullseye/main amd64 java-common all 0.72 [14.5 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 openjdk-11-jre-headless amd64 11.0.12+7-2 [37.3 MB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 ca-certificates-java all 20190909 [15.7 kB] 
Get:4 http://deb.debian.org/debian bullseye-proposed-updates/main amd64 libatk-wrapper-java all 0.38.0-2+deb11u1 [64.7 kB]
Get:5 http://deb.debian.org/debian bullseye-proposed-updates/main amd64 libatk-wrapper-java-jni amd64 0.38.0-2+deb11u1 [56.2 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [22.1 kB] 
Get:7 http://deb.debian.org/debian bullseye/main amd64 x11proto-dev all 2020.1-1 [594 kB] 
Get:8 http://deb.debian.org/debian bullseye/main amd64 libice-dev amd64 2:1.0.10-1 [67.1 kB] 
Get:9 http://deb.debian.org/debian bullseye/main amd64 libpthread-stubs0-dev amd64 0.4-1 [5,344 B] 
Get:10 http://deb.debian.org/debian bullseye/main amd64 libsm-dev amd64 2:1.2.3-1 [38.0 kB] 
Get:11 http://deb.debian.org/debian bullseye/main amd64 libxau-dev amd64 1:1.0.9-1 [22.9 kB] 
Get:12 http://deb.debian.org/debian bullseye/main amd64 libxdmcp-dev amd64 1:1.1.2-3 [42.2 kB] 
Get:13 http://deb.debian.org/debian bullseye/main amd64 xtrans-dev all 1.4.0-1 [98.7 kB] 
Get:14 http://deb.debian.org/debian bullseye/main amd64 libxcb1-dev amd64 1.14-3 [176 kB] 
Get:15 http://deb.debian.org/debian bullseye/main amd64 libx11-dev amd64 2:1.7.2-1 [841 kB] 
Get:16 http://deb.debian.org/debian bullseye/main amd64 libxt-dev amd64 1:1.2.0-1 [407 kB] 
Get:17 http://deb.debian.org/debian bullseye/main amd64 openjdk-11-jre amd64 11.0.12+7-2 [176 kB] 
Get:18 http://deb.debian.org/debian bullseye/main amd64 openjdk-11-jdk-headless amd64 11.0.12+7-2 [217 MB]
Get:19 http://deb.debian.org/debian bullseye/main amd64 openjdk-11-jdk amd64 11.0.12+7-2 [7,101 kB] 
Fetched 264 MB in 1min 35s (2,769 kB/s) 
Selecting previously unselected package java-common.
(Reading database ... 135275 files and directories currently installed.)
Preparing to unpack .../00-java-common_0.72_all.deb ...
Unpacking java-common (0.72) ...
Selecting previously unselected package openjdk-11-jre-headless:amd64.
Preparing to unpack .../01-openjdk-11-jre-headless_11.0.12+7-2_amd64.deb ...
Unpacking openjdk-11-jre-headless:amd64 (11.0.12+7-2) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../02-ca-certificates-java_20190909_all.deb ...
Unpacking ca-certificates-java (20190909) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../03-libatk-wrapper-java_0.38.0-2+deb11u1_all.deb ...
Unpacking libatk-wrapper-java (0.38.0-2+deb11u1) ...
Selecting previously unselected package libatk-wrapper-java-jni:amd64.
Preparing to unpack .../04-libatk-wrapper-java-jni_0.38.0-2+deb11u1_amd64.deb ...
Unpacking libatk-wrapper-java-jni:amd64 (0.38.0-2+deb11u1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../05-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1.1) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../06-x11proto-dev_2020.1-1_all.deb ...
Unpacking x11proto-dev (2020.1-1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../07-libice-dev_2%3a1.0.10-1_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.10-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../08-libpthread-stubs0-dev_0.4-1_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.4-1) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../09-libsm-dev_2%3a1.2.3-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.3-1) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../10-libxau-dev_1%3a1.0.9-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.9-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../11-libxdmcp-dev_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-3) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../12-xtrans-dev_1.4.0-1_all.deb ...
Unpacking xtrans-dev (1.4.0-1) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../13-libxcb1-dev_1.14-3_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.14-3) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../14-libx11-dev_2%3a1.7.2-1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.7.2-1) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../15-libxt-dev_1%3a1.2.0-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.2.0-1) ...
Selecting previously unselected package openjdk-11-jre:amd64.
Preparing to unpack .../16-openjdk-11-jre_11.0.12+7-2_amd64.deb ...
Unpacking openjdk-11-jre:amd64 (11.0.12+7-2) ...
Selecting previously unselected package openjdk-11-jdk-headless:amd64.
Preparing to unpack .../17-openjdk-11-jdk-headless_11.0.12+7-2_amd64.deb ...
Unpacking openjdk-11-jdk-headless:amd64 (11.0.12+7-2) ...
Selecting previously unselected package openjdk-11-jdk:amd64.
Preparing to unpack .../18-openjdk-11-jdk_11.0.12+7-2_amd64.deb ...
Unpacking openjdk-11-jdk:amd64 (11.0.12+7-2) ...
Setting up java-common (0.72) ...
Setting up libpthread-stubs0-dev:amd64 (0.4-1) ...
Setting up xtrans-dev (1.4.0-1) ...
Setting up xorg-sgml-doctools (1:1.11-1.1) ...
Setting up libatk-wrapper-java (0.38.0-2+deb11u1) ...
Setting up libatk-wrapper-java-jni:amd64 (0.38.0-2+deb11u1) ...
Setting up openjdk-11-jre-headless:amd64 (11.0.12+7-2) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up openjdk-11-jre:amd64 (11.0.12+7-2) ...
Setting up openjdk-11-jdk-headless:amd64 (11.0.12+7-2) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeprscan to provide /usr/bin/jdeprscan (jdeprscan) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jfr to provide /usr/bin/jfr (jfr) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jimage to provide /usr/bin/jimage (jimage) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jlink to provide /usr/bin/jlink (jlink) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmod to provide /usr/bin/jmod (jmod) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jshell to provide /usr/bin/jshell (jshell) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jaotc to provide /usr/bin/jaotc (jaotc) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jhsdb to provide /usr/bin/jhsdb (jhsdb) in auto mode
Setting up openjdk-11-jdk:amd64 (11.0.12+7-2) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Setting up ca-certificates-java (20190909) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
Adding debian:Amazon_Root_CA_4.pem
Adding debian:emSign_Root_CA_-_C1.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:Izenpe.com.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:GTS_Root_R2.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:GTS_Root_R3.pem
Adding debian:Certigna_Root_CA.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:e-Szigno_Root_CA_2017.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:Hongkong_Post_Root_CA_3.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:TrustCor_RootCert_CA-1.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:Trustis_FPS_Root_CA.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Trustwave_Global_ECC_P256_Certification_Authority.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:Certigna.pem
Adding debian:emSign_ECC_Root_CA_-_G3.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:emSign_ECC_Root_CA_-_C3.pem
Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:UCA_Extended_Validation_Root.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:UCA_Global_G2_Root.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:SecureTrust_CA.pem
Adding debian:GlobalSign_Root_CA_-_R6.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:certSIGN_Root_CA_G2.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:Entrust_Root_Certification_Authority_-_G4.pem
Adding debian:EC-ACC.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:Trustwave_Global_ECC_P384_Certification_Authority.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:NAVER_Global_Root_Certification_Authority.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:GTS_Root_R4.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:GTS_Root_R1.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:Trustwave_Global_Certification_Authority.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:TrustCor_ECA-1.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:TrustCor_RootCert_CA-2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:Secure_Global_CA.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:emSign_Root_CA_-_G1.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
done.
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
Processing triggers for sgml-base (1.30) ...
Setting up x11proto-dev (2020.1-1) ...
Setting up libxau-dev:amd64 (1:1.0.9-1) ...
Setting up libice-dev:amd64 (2:1.0.10-1) ...
Setting up libsm-dev:amd64 (2:1.2.3-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.2-3) ...
Setting up libxcb1-dev:amd64 (1.14-3) ...
Setting up libx11-dev:amd64 (2:1.7.2-1) ...
Setting up libxt-dev:amd64 (1:1.2.0-1) ...

 

3. Verify the Installation

After installing OpenJDK 11, we can verify that it is installed correctly by running the “java -version” command. This should display information about the installed version of Java.

$ java -version

Output :

ramansah@otodiginet:~$ java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

OpenJDK 11 on Debian 11

 

Conclusion

We have learned how to install OpenJDK 11 on Debian 11 (Bulleyes) operating system. I hope this article will be helpful.

 

 

(Visited 139 times, 1 visits today)

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

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