{"id":233,"date":"2023-01-19T18:29:41","date_gmt":"2023-01-19T18:29:41","guid":{"rendered":"https:\/\/www.graphmangraphics.com\/osl\/?p=233"},"modified":"2023-01-19T18:32:20","modified_gmt":"2023-01-19T18:32:20","slug":"installing-openjdk-on-pop_os","status":"publish","type":"post","link":"https:\/\/www.graphmangraphics.com\/osl\/?p=233","title":{"rendered":"Installing OpenJDK on Pop!_OS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pop!_OS is a Debian-based Linux distribution that is designed for developers and makers. It comes with the latest version of the GNOME desktop environment, and is optimized for use on laptops and desktops. In this article, we will show you how to install OpenJDK 8 and OpenJDK 11 on Pop!_OS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"279\" src=\"https:\/\/www.graphmangraphics.com\/osl\/wp-content\/uploads\/2023\/01\/openjdk.png\" alt=\"OpenJDK\" class=\"wp-image-234\" srcset=\"https:\/\/www.graphmangraphics.com\/osl\/wp-content\/uploads\/2023\/01\/openjdk.png 1024w, https:\/\/www.graphmangraphics.com\/osl\/wp-content\/uploads\/2023\/01\/openjdk-300x82.png 300w, https:\/\/www.graphmangraphics.com\/osl\/wp-content\/uploads\/2023\/01\/openjdk-150x41.png 150w, https:\/\/www.graphmangraphics.com\/osl\/wp-content\/uploads\/2023\/01\/openjdk-768x209.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">OpenJDK<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">OpenJDK 8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenJDK 8 is the latest long-term support (LTS) version of the Java Development Kit (JDK). It is still widely used and supported by many organizations, and is the recommended version for most production systems. To install OpenJDK 8 on Pop!_OS, open a terminal and enter the following commands:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt update<br>sudo apt install openjdk-8-jdk<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will install the OpenJDK 8 JDK and all of the necessary libraries and tools. Once the installation is complete, you can verify that it is working by running the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">java -version<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see output similar to the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">openjdk version &#8220;1.8.0_275&#8221;<br>OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~20.04-b01)<br>OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenJDK 11<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenJDK 11 is the latest version of the JDK, and is the recommended version for new projects. To install OpenJDK 11 on Pop!_OS, open a terminal and enter the following commands:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt update<br>sudo apt install openjdk-11-jdk<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installation is complete, you can verify that it is working by running the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">java -version<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see output similar to the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">openjdk version &#8220;11.0.11&#8221; 2021-04-20<br>OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2)<br>OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode, sharing)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note: The version numbers in the output may be different depending on the version of OpenJDK you have installed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Attribution<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Installation instructions for OpenJDK 8 and OpenJDK 11 on Pop!_OS are based on the official documentation from OpenJDK (https:\/\/openjdk.java.net\/)\nPop!_OS is developed by System76 (https:\/\/system76.com\/)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! You now have both OpenJDK 8 and OpenJDK 11 installed on your Pop!_OS system, and can switch between them as needed. If you have any questions or issues, please refer to the official documentation or seek help from the Pop!_OS community.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pop!_OS is a Debian-based Linux distribution that is designed for developers and makers. It comes with the latest version of the GNOME desktop environment, and is optimized for use on laptops and desktops. In this article, we will show you how to install OpenJDK 8 and OpenJDK 11 on Pop!_OS. OpenJDK 8 OpenJDK 8 is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-free-and-open-source-software"],"_links":{"self":[{"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/posts\/233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233"}],"version-history":[{"count":1,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graphmangraphics.com\/osl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}