{"id":50362,"date":"2025-05-28T12:30:00","date_gmt":"2025-05-28T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=50362"},"modified":"2025-04-10T07:07:58","modified_gmt":"2025-04-10T12:07:58","slug":"how-to-install-java-21-on-almalinux-10","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/","title":{"rendered":"How to Install Java 21 on AlmaLinux 10"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp\" alt=\"How to Install Java 21 on AlmaLinux 10\" class=\"wp-image-50364\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Java 21 is the Java platform&#8217;s Long-Term Support (LTS) release. As a high-level, object-oriented, class-based programming language used for developing mobile and desktop applications, it can run on all major operating systems. Java is designed with the philosophy of:<br>&#8220;Write Once, Run Anywhere&#8221; (<strong>WORA<\/strong>) allows you to write Java code on one platform and run it on any other platform that supports the Java Virtual Machine (JVM) without modifying the source code. This tutorial will show you how to install Java 21 on AlmaLinux 10.<\/p>\n\n\n\n<!--more-->\n\n\n\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-69f1144db8054\" 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-69f1144db8054\"  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-21-on-almalinux-10\/#Prerequisites\" >Prerequisites<\/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-21-on-almalinux-10\/#Step-1-Update-System-Packages\" >Step 1. Update System Packages<\/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-21-on-almalinux-10\/#More-about-Java\" >More about Java<\/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-21-on-almalinux-10\/#Step-2-Installing-Java-21\" >Step 2. Installing Java 21<\/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-21-on-almalinux-10\/#Switch-Between-Different-Java-Versions\" >Switch Between Different Java Versions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#Set-JAVA-HOME-Environment-Variable\" >Set JAVA_HOME Environment Variable<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An <a href=\"https:\/\/www.rosehosting.com\/almalinux-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">AlmaLinux 10 server<\/a>.<\/li>\n\n\n\n<li>Access to the root user account (or access to an admin account with root privileges)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Update-System-Packages\"><\/span>Step 1. Update System Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, log in to your Almalinux 10 server via SSH as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@IP_Address -p Port_number<\/code><\/pre>\n\n\n\n<p><br>Replace \u2018IP_Address\u2019 and \u2018Port_number\u2019 with your server\u2019s IP address and SSH port number. If needed, replace \u2018root\u2019 with the username of your sudo account. <\/p>\n\n\n\n<p>Once logged in, you must ensure that all AlmaLinux OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf update &amp;&amp; dnf upgrade<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"More-about-Java\"><\/span>More about Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we show you the three ways you can install Java 21 on Almalinux, let&#8217;s explain the differences between the installations and the terms used, such as <strong>JRE<\/strong>, <strong>JDK, <\/strong>and <strong>JVM<\/strong>.<\/p>\n\n\n\n<p><br><strong>JVM<\/strong>: Java Virtual Machine \u2013 is the engine that runs Java bytecode. As previously mentioned, once you write Java code on one platform, you can run it on any platform that supports Java.<\/p>\n\n\n\n<p><strong>JRE<\/strong> stands for Java Runtime Environment. It\u2019s a package that includes the JVM and the core libraries needed to run Java applications. Using JRE, you can only run Java applications, but you can\u2019t develop them as it does not include the Java compiler, build, or debug tools.<\/p>\n\n\n\n<p><strong>JDK<\/strong>: Java Development Kit is a complete package for Java Developers that includes JRE + development tools.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Java Oracle JDK<\/strong>: the official Java SE developed by Sun MicroSystems was acquired by Oracle in 2009 and became Oracle Java or Oracle JDK.<\/li>\n\n\n\n<li><strong>Java OpenJDK:<\/strong> an open-source version of the Oracle JDK maintained by the community.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Installing-Java-21\"><\/span>Step 2. Installing Java 21<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Java is omitted by default in AlmaLinux 10, so you can install the OpenJDK Java 21 package using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install java-21-openjdk java-21-openjdk-devel<\/code><\/pre>\n\n\n\n<p>Once completed, you can check the Java version with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># java --version\nopenjdk 21.0.4 2024-07-16 LTS\nOpenJDK Runtime Environment (Red_Hat-21.0.4.0.7-1) (build 21.0.4+7-LTS)\nOpenJDK 64-Bit Server VM (Red_Hat-21.0.4.0.7-1) (build 21.0.4+7-LTS, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<p>If you want to install Java OpenJDK from the Adoptium (Eclipse Temurin) project, you can also check their guide at: https:\/\/adoptium.net\/installation\/linux\/<\/p>\n\n\n\n<p>If you want to install <strong>Java Oracle JDK<\/strong>, you can use the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/download.oracle.com\/java\/21\/latest\/jdk-21_linux-x64_bin.rpm\nrpm -i jdk-21_linux-x64_bin.rpm<\/code><\/pre>\n\n\n\n<p>Once installed, you can check the Java version with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java --version\njava 21.0.6 2025-01-21 LTS\nJava(TM) SE Runtime Environment (build 21.0.6+8-LTS-188)\nJava HotSpot(TM) 64-Bit Server VM (build 21.0.6+8-LTS-188, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Switch-Between-Different-Java-Versions\"><\/span>Switch Between Different Java Versions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you have installed multiple versions of Java from different sources, such as OpenJDK and Oracle, you can easily set the default version using the update-alternatives command.<\/p>\n\n\n\n<p>To set the Java default version from Oracle Java 21 to Java OpenJDK 21, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>update-alternatives --config java<\/code><\/pre>\n\n\n\n<p>You should see a list of all installed Java versions in the following output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># update-alternatives --config java\n\nThere are 2 programs which provide 'java'.\n\n  Selection    Command\n-----------------------------------------------\n*  1           \/usr\/lib\/jvm\/jdk-21.0.6-oracle-x64\/bin\/java\n + 2           java-21-openjdk.x86_64 (\/usr\/lib\/jvm\/java-21-openjdk-21.0.4.0.7-1.el10.x86_64\/bin\/java)\n\nEnter to keep the current selection&#91;+], or type selection number:\n<\/code><\/pre>\n\n\n\n<p>Type <strong>2 <\/strong>and hit Enter to set Java 21 OpenJDK as the default Java version, and then if you run java \u2013 version again, you should see the Java version has changed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># java --version\nopenjdk 21.0.4 2024-07-16 LTS\nOpenJDK Runtime Environment (Red_Hat-21.0.4.0.7-1) (build 21.0.4+7-LTS)\nOpenJDK 64-Bit Server VM (Red_Hat-21.0.4.0.7-1) (build 21.0.4+7-LTS, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Set-JAVA-HOME-Environment-Variable\"><\/span>Set JAVA_HOME Environment Variable<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You must set the JAVA_HOME environment variable to define the Java path in some Java applications.<\/p>\n\n\n\n<p>First, find the Java installation path with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>update-alternatives --config java<\/code><\/pre>\n\n\n\n<p>You should see the path of all Java versions in the following output:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>There are 2 programs which provide 'java'.\n  \nSelection    Command\n-----------------------------------------------\n*  1           \/usr\/lib\/jvm\/jdk-21.0.6-oracle-x64\/bin\/java\n + 2           java-21-openjdk.x86_64 (\/usr\/lib\/jvm\/java-21-openjdk-21.0.4.0.7-1.el10.x86_64\/bin\/java)\n\nEnter to keep the current selection&#91;+], or type selection number:\n<\/code><\/pre>\n\n\n\n<p>Next, copy your desired Java version path from the above output and paste it in the \/etc\/environment file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/environment<\/code><\/pre>\n\n\n\n<p>Add the following line for Java 21:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>JAVA_HOME=\"\/usr\/lib\/jvm\/jdk-21.0.6-oracle-x64\/bin\/java\"<\/code><\/pre>\n\n\n\n<p>Next, activate the Java environment variable with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source \/etc\/environment<\/code><\/pre>\n\n\n\n<p>You can now verify the JAVA_HOME environment variable with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $JAVA_HOME<\/code><\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/lib\/jvm\/jdk-21.0.6-oracle-x64\/bin\/java<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the above guide, you learned how to install Java 21 on an AlmaLinux 10 server.<\/p>\n\n\n\n<p>Of course, you don\u2019t have to do any of this if you use one of our Linux VPS Hosting services. In that 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\n\n\n<p>If you liked this post, please share it with your friends or leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java 21 is the Java platform&#8217;s Long-Term Support (LTS) release. As a high-level, object-oriented, class-based programming language used for developing &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Java 21 on AlmaLinux 10\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#more-50362\" aria-label=\"Read more about How to Install Java 21 on AlmaLinux 10\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":50364,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2176],"tags":[2263,1603,2140],"class_list":["post-50362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-almalinux","tag-almalinux-10","tag-how-to-install","tag-java-21","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.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Java 21 on AlmaLinux 10 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install Java 21 on AlmaLinux 10 or let our Linux admins take care of the installation and set up for you.\" \/>\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-21-on-almalinux-10\/\" \/>\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 21 on AlmaLinux 10\" \/>\n<meta property=\"og:description\" content=\"How to Install Java 21 on AlmaLinux 10 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/\" \/>\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=\"2025-05-28T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\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-21-on-almalinux-10\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Java 21 on AlmaLinux 10\",\"datePublished\":\"2025-05-28T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/\"},\"wordCount\":699,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/how-to-install-java-21-on-almalinux-10.webp\",\"keywords\":[\"almalinux 10\",\"how to install\",\"java 21\"],\"articleSection\":[\"AlmaLinux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/\",\"name\":\"How to Install Java 21 on AlmaLinux 10 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/how-to-install-java-21-on-almalinux-10.webp\",\"datePublished\":\"2025-05-28T17:30:00+00:00\",\"description\":\"Learn how to install Java 21 on AlmaLinux 10 or let our Linux admins take care of the installation and set up for you.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/how-to-install-java-21-on-almalinux-10.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/how-to-install-java-21-on-almalinux-10.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to Install Java 21 on AlmaLinux 10\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-java-21-on-almalinux-10\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Java 21 on AlmaLinux 10\"}]},{\"@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 21 on AlmaLinux 10 | RoseHosting","description":"Learn how to install Java 21 on AlmaLinux 10 or let our Linux admins take care of the installation and set up for you.","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-21-on-almalinux-10\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Java 21 on AlmaLinux 10","og_description":"How to Install Java 21 on AlmaLinux 10 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2025-05-28T17:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp","type":"image\/webp"}],"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-21-on-almalinux-10\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Java 21 on AlmaLinux 10","datePublished":"2025-05-28T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/"},"wordCount":699,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp","keywords":["almalinux 10","how to install","java 21"],"articleSection":["AlmaLinux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/","name":"How to Install Java 21 on AlmaLinux 10 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp","datePublished":"2025-05-28T17:30:00+00:00","description":"Learn how to install Java 21 on AlmaLinux 10 or let our Linux admins take care of the installation and set up for you.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/04\/how-to-install-java-21-on-almalinux-10.webp","width":1024,"height":576,"caption":"How to Install Java 21 on AlmaLinux 10"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-21-on-almalinux-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Java 21 on AlmaLinux 10"}]},{"@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\/50362","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=50362"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/50362\/revisions"}],"predecessor-version":[{"id":50365,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/50362\/revisions\/50365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/50364"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=50362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=50362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=50362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}