{"id":40808,"date":"2022-05-09T12:30:42","date_gmt":"2022-05-09T17:30:42","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=40808"},"modified":"2022-10-05T06:13:52","modified_gmt":"2022-10-05T11:13:52","slug":"how-to-install-java-17-lts-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/","title":{"rendered":"How to Install Java 17 LTS on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"aligncenter size-full wp-image-41223\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg\" alt=\"How to Install Java 17 LTS on Ubuntu 20.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Java is a free, open-source, high-level, object-oriented programming language that is designed to have as few implementation dependencies and it can run on all major operating systems that support Java without the need for recompilation.<\/p>\n<p>Java 17 LTS is the latest long-term support release that includes security and performance updates, and of-course bug fixes.<\/p>\n<p><!--more--><\/p>\n<p>Installing Java on Ubuntu 20.04 server is easy, however, it\u2019s important to know which \u2018type\u2019 of Java you need:<\/p>\n<ul>\n<li>OpenJDK is a free and open-source implementation of the Java SE Platform Edition.<\/li>\n<li>Oracle JDK is the closed-source in-house version of Java developed entirely by Oracle.<\/li>\n<\/ul>\n<p>Oracle Java is more oriented towards the enterprise market, with longer version support lifespans than OpenJDK.<\/p>\n<h3 id=\"h-prerequisites\">Prerequisites<\/h3>\n<ul>\n<li>An Ubuntu 20.04 VPS (we\u2019ll be using our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/\">NVMe 2 VPS<\/a> plan)<\/li>\n<li>Access to the root user account (or access to an admin account with root privileges)<\/li>\n<\/ul>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ed446db62cf\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ed446db62cf\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#Log-in-to-the-Server-Update-the-Server-OS-Packages\" >Log in to the Server &amp; Update the Server OS Packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#Install-OpenJDK-17-from-Ubuntu-2004-Repository\" >Install OpenJDK 17 from Ubuntu 20.04 Repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-APT-PPA-Method\" >Install Oracle JDK 17 on Ubuntu 20.04 \u2013 APT PPA Method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-DPKG-Method\" >Install Oracle JDK 17 on Ubuntu 20.04 \u2013 DPKG Method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-Manual-Method\" >Install Oracle JDK 17 on Ubuntu 20.04 \u2013 Manual Method<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Log-in-to-the-Server-Update-the-Server-OS-Packages\"><\/span>Log in to the Server &amp; Update the Server OS Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, log in to your Ubuntu 20.04 server via SSH as the root user:<\/p>\n<pre>ssh root@IP_Address -p Port_number<\/pre>\n<p>You will need to replace \u2018<strong>IP_Address<\/strong>\u2018 and <strong>\u2018Port_number<\/strong>\u2018 with your server\u2019s respective IP address and SSH port number. Additionally, replace \u2018root\u2019 with the username of the admin account if necessary.<\/p>\n<p>Before starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n<pre>apt-get update\r\napt-get upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-OpenJDK-17-from-Ubuntu-2004-Repository\"><\/span>Install OpenJDK 17 from Ubuntu 20.04 Repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Ubuntu 20.04\u2019s default repository included Java 17. This is the easiest way to install the JDK using the <code>apt<\/code> package manager:<\/p>\n<pre>apt install openjdk-17-jdk openjdk-17-jre<\/pre>\n<p>Once installed, verify the Java version using the following command:<\/p>\n<pre>java -version<\/pre>\n<p>You should get the following output:<\/p>\n<pre>openjdk 17.0.2 2022-01-18\r\nOpenJDK Runtime Environment (build 17.0.2+8-Ubuntu-120.04)\r\nOpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-APT-PPA-Method\"><\/span>Install Oracle JDK 17 on Ubuntu 20.04 \u2013 APT PPA Method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default, Oracle Java is not available in the Ubuntu 20.04 default repository. You will need to add the third-party repository in your system in order to install Oracle Java.<\/p>\n<p>First, install the required dependencies with the following command:<\/p>\n<pre>apt-get install gnupg2 software-properties-common<\/pre>\n<p>Once all the dependencies are installed, add the Java repository with the following command:<\/p>\n<pre>add-apt-repository ppa:linuxuprising\/java<\/pre>\n<p>When the repository is added, you can install it with the following command:<\/p>\n<pre>apt-get install oracle-java17-installer oracle-java17-set-default<\/pre>\n<p>You will see this installer window where you are supposed to agree to the License Terms.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-41185 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-20-04.webp\" alt=\"install java 17 lts on ubuntu 20.04\" width=\"1024\" height=\"526\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-20-04.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-20-04-300x154.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-20-04-150x77.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-20-04-768x395.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Agree to the License Terms by clicking <strong>Yes:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-41186 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu.webp\" alt=\"install java 17 lts on ubuntu\" width=\"1024\" height=\"198\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-300x58.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-150x29.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/install-java-17-lts-on-ubuntu-768x149.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Once the installation has been finished, verify the installed version of Java by checking the version:<\/p>\n<pre>java -version<\/pre>\n<p>You should get the following output:<\/p>\n<pre>java version \"17.0.1\" 2021-10-19 LTS\r\nJava(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)\r\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-DPKG-Method\"><\/span>Install Oracle JDK 17 on Ubuntu 20.04 \u2013 DPKG Method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, install the required dependencies using the following command:<\/p>\n<pre>apt install libc6-i386 libc6-x32 libxi6 libxtst6<\/pre>\n<p>After installing all the required dependencies, you can download the <strong>.deb package<\/strong> using a <code>wget<\/code> command:<\/p>\n<pre>wget https:\/\/download.oracle.com\/java\/17\/latest\/jdk-17_linux-x64_bin.deb<\/pre>\n<p>Once you have downloaded the <strong>.deb package<\/strong>, run the following command to install Java:<\/p>\n<pre> dpkg -i jdk-17_linux-x64_bin.deb<\/pre>\n<p>Set environment variables using these commands below:<\/p>\n<pre>export JAVA_HOME=\/usr\/lib\/jvm\/jdk-17\/\r\nexport PATH=$PATH:$JAVA_HOME\/bin<\/pre>\n<p>Next, set your Java\u00a0 environment path in the <strong>\/etc\/environment<\/strong> file:<\/p>\n<pre>nano \/etc\/environment<\/pre>\n<p>Add the following line:<\/p>\n<pre>JAVA_HOME=\"\/usr\/lib\/jvm\/jdk-17\"\r\n<\/pre>\n<p>Next, activate the Java environment variable with the following command:<\/p>\n<pre>source \/etc\/environment<\/pre>\n<p>You can now verify the JAVA_HOME environment variable with the following command:<\/p>\n<pre>echo $JAVA_HOME<\/pre>\n<p>You should get the following output:<\/p>\n<pre>\/usr\/lib\/jvm\/jdk-17\r\n<\/pre>\n<p>You can now verify the version of Java using the following command:<\/p>\n<pre>java -version<\/pre>\n<p>Output:<\/p>\n<pre>java version \"17.0.2\" 2022-01-18 LTS\r\nJava(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)\r\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)<\/pre>\n<h2 id=\"install-java-jdk-17-manual-method\"><span class=\"ez-toc-section\" id=\"Install-Oracle-JDK-17-on-Ubuntu-2004-%E2%80%93-Manual-Method\"><\/span>Install Oracle JDK 17 on Ubuntu 20.04 \u2013 Manual Method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"wp-block-image\">Open the browser and search for Download JDK 17 or <a href=\"https:\/\/www.oracle.com\/java\/technologies\/downloads\/\">download from the Oracle website<\/a>:<\/div>\n<div><\/div>\n<div><img decoding=\"async\" class=\"aligncenter wp-image-41187 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/java-17-lts-on-ubuntu-20-04.webp\" alt=\"java 17 lts on ubuntu 20.04\" width=\"1024\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/java-17-lts-on-ubuntu-20-04.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/java-17-lts-on-ubuntu-20-04-300x109.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/java-17-lts-on-ubuntu-20-04-150x54.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/java-17-lts-on-ubuntu-20-04-768x279.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<div><\/div>\n<p>You can download it\u00a0 using the following command:<\/p>\n<pre>wget https:\/\/download.oracle.com\/java\/17\/latest\/jdk-17_linux-x64_bin.tar.gz<\/pre>\n<p>Once the tarball is downloaded, verify the tarball checksum with the following command:<\/p>\n<pre>sha256sum jdk-17_linux-x64_bin.tar.gz<\/pre>\n<p>You should see an output that looks similar to the one below:<\/p>\n<pre>342e76bb9ded80aa1edd566efbae42f8f1c2366e19b9189e5941b45893b9861f jdk-17_linux-x64_bin.tar.gz<\/pre>\n<p>Compare the hash value from the above output to the checksum value on the Oracle download page. If they match, that means the file\u2019s integrity is validated.<\/p>\n<p>You have successfully downloaded the Java JDK 17\u00a0 file and now you will extract it to the\u00a0 <strong><code>\/opt<\/code><\/strong> directory using the tar command:<\/p>\n<pre>tar xvzf jdk-17_linux-x64_bin.tar.gz -C \/opt<\/pre>\n<p>Now you need to set the environment variables as below:<\/p>\n<pre>export JAVA_HOME=\/opt\/jdk-17.0.2\r\nexport PATH=$PATH:$JAVA_HOME\/bin<\/pre>\n<p>Verify the JAVA_HOME environment variable with the following command:<\/p>\n<pre>echo $JAVA_HOME<\/pre>\n<p>You should get the following output:<\/p>\n<pre>\/opt\/jdk-17.0.2<\/pre>\n<p>Java 17 is now installed. To confirm, use the following commands:<\/p>\n<pre>java -version<\/pre>\n<p>If installed correctly, you should see the following output:<\/p>\n<pre>java 17.0.2 2022-01-18 LTS\r\nJava(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)\r\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)<\/pre>\n<p>As you can see, you can see the version is the latest <strong>Java 17 JDK build<\/strong>.<\/p>\n<p>In this tutorial, you learned how to install Java JDK 17 on Ubuntu 20.04 server.<\/p>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux VPS Hosting<\/a> services, in which case you can ask our expert Linux admins to set it up for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n<p><strong>PS<\/strong>. If you liked this post please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java is a free, open-source, high-level, object-oriented programming language that is designed to have as few implementation dependencies and it &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Java 17 LTS on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#more-40808\" aria-label=\"Read more about How to Install Java 17 LTS on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":41223,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1603,2002,1839],"class_list":["post-40808","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-how-to-install","tag-java-17-lts","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Take a look at our in-depth tutorial to find out how to install Java JDK 17 on Ubuntu 20.04 server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Java 17 LTS on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-09T17:30:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-05T11:13:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg?v=1650982075\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Java 17 LTS on Ubuntu 20.04\",\"datePublished\":\"2022-05-09T17:30:42+00:00\",\"dateModified\":\"2022-10-05T11:13:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/\"},\"wordCount\":748,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg\",\"keywords\":[\"how to install\",\"java 17 lts\",\"Ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/\",\"name\":\"How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg\",\"datePublished\":\"2022-05-09T17:30:42+00:00\",\"dateModified\":\"2022-10-05T11:13:52+00:00\",\"description\":\"Take a look at our in-depth tutorial to find out how to install Java JDK 17 on Ubuntu 20.04 server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Java 17 LTS on Ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-17-lts-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Java 17 LTS on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting","description":"Take a look at our in-depth tutorial to find out how to install Java JDK 17 on Ubuntu 20.04 server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Java 17 LTS on Ubuntu 20.04","og_description":"How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-05-09T17:30:42+00:00","article_modified_time":"2022-10-05T11:13:52+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg?v=1650982075","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Java 17 LTS on Ubuntu 20.04","datePublished":"2022-05-09T17:30:42+00:00","dateModified":"2022-10-05T11:13:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/"},"wordCount":748,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg","keywords":["how to install","java 17 lts","Ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/","name":"How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg","datePublished":"2022-05-09T17:30:42+00:00","dateModified":"2022-10-05T11:13:52+00:00","description":"Take a look at our in-depth tutorial to find out how to install Java JDK 17 on Ubuntu 20.04 server.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/04\/how-to-install-java-17-lts-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"How to Install Java 17 LTS on Ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Java 17 LTS on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=40808"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40808\/revisions"}],"predecessor-version":[{"id":43302,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40808\/revisions\/43302"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/41223"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=40808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=40808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=40808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}