{"id":41546,"date":"2022-07-04T12:30:31","date_gmt":"2022-07-04T17:30:31","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=41546"},"modified":"2022-12-05T05:25:40","modified_gmt":"2022-12-05T11:25:40","slug":"how-to-install-glassfish-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/","title":{"rendered":"How to Install GlassFish on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-42450 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp\" alt=\"how to install glassfish on ubuntu 22.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>GlassFish is an open-source Jakarta EE platform application server. It was initially developed by Sun Microsystems, then sponsored by Oracle Corporation, and now it is being maintained by the developers at Eclipse Foundation. GlassFish supports JSP, Servlets, JSF, JAVA API, RMI, etc. With this tool, web developers can easily build scalable and portable applications. In this tutorial, we will show you how to install <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">GlassFish on Ubuntu 22.04<\/a>.<\/p>\n<p><!--more--><\/p>\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-69eadf543fbea\" 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-69eadf543fbea\"  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-glassfish-on-ubuntu-22-04\/#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-glassfish-on-ubuntu-22-04\/#Step-1-Log-in-to-the-Server-and-Update\" >Step 1. Log in to the Server and Update<\/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-glassfish-on-ubuntu-22-04\/#Step-2-Create-a-System-User\" >Step 2. Create a System User<\/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-glassfish-on-ubuntu-22-04\/#Step-3-Install-Java\" >Step 3. Install Java<\/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-glassfish-on-ubuntu-22-04\/#Step-4-Install-GlassFish\" >Step 4. Install GlassFish<\/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-glassfish-on-ubuntu-22-04\/#Step-5-Create-Systemd-File\" >Step 5. Create Systemd File<\/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-glassfish-on-ubuntu-22-04\/#Step-6-Configure-GlassFish\" >Step 6. Configure GlassFish<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8211; An Ubuntu 22.04 VPS<br \/>\n&#8211; Full SSH root access or a regular system user with sudo privileges<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-to-the-Server-and-Update\"><\/span>Step 1. Log in to the Server and Update<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First of all, we need to log in to our Ubuntu 22.04 VPS through SSH:<\/p>\n<pre>ssh root@IP_Address -p Port_Number<\/pre>\n<p>You need to replace &#8220;IP_Address&#8221; and &#8220;Port_number&#8221; with your server\u2019s actual IP address and SSH port number. You can also replace &#8216;root&#8217; with your other system user that has sudo privileges.<\/p>\n<p>Once logged in, you can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this output:<\/p>\n<pre>No LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 22.04 LTS\r\nRelease: 22.04\r\nCodename: jammy<\/pre>\n<p>and make sure that all packages are up to date.<\/p>\n<pre># apt update\r\n# apt upgrade<\/pre>\n<p>Please note, that the shell commands in this article are invoked using the &#8216;root&#8217; account. If you want to use your regular user with sudo privileges to run the commands, make sure to append &#8216;sudo&#8217; in front of the commands.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Create-a-System-User\"><\/span>Step 2. Create a System User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For security reasons, it is not recommended to run GlassFish as user &#8216;root&#8217;, so we will create a new system user to run GlassFish. We will also disable shell access for the new user, run this command below to complete this step.<\/p>\n<pre># useradd -m -d \/opt\/glassfish6 -U -s \/bin\/false glassfish<\/pre>\n<p>After running the command above, the \/opt\/glassfish6 directory will be automatically created. We will use this directory to store our GlassFish core files.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Java\"><\/span>Step 3. Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You must have a Java runtime environment (JRE) installed on your system to run GlassFish. GlassFish 6 requires JRE 8 or higher version installed on your system. Let&#8217;s run the command below to install JRE from the Ubuntu repository.<\/p>\n<pre># apt install default-jdk -y<\/pre>\n<p>Once installed, we can check the version using this command:<\/p>\n<pre># java --version<\/pre>\n<p>It will return an output like this:<\/p>\n<pre>openjdk 11.0.15 2022-04-19\r\nOpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)\r\nOpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-GlassFish\"><\/span>Step 4. Install GlassFish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this step, we are going to download GlassFish from <a href=\"https:\/\/glassfish.org\/download\">https:\/\/glassfish.org\/download<\/a>. If you wish to install the most recent version, you can go to their download page and copy the download link.<\/p>\n<pre># wget https:\/\/www.eclipse.org\/downloads\/download.php?file=\/ee4j\/glassfish\/glassfish-6.2.5.zip -O glassfish6.zip<\/pre>\n<p>After downloading the file, we need to extract it to \/opt\/glassfish6 and change the directory and file permission.<\/p>\n<pre># unzip \/opt\/glassfish.zip -d \/opt\r\n# chown -R glassfish: \/opt\/glassfish6<\/pre>\n<p>We downloaded and extracted GlassFish core files, and now we can continue to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Create-Systemd-File\"><\/span>Step 5. Create Systemd File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To manage the FlassFish service, we need to create a systemd file. Let&#8217;s create the file using nano editor, you can use any other editor you like.<\/p>\n<pre># nano\/etc\/systemd\/system\/glassfish.service<\/pre>\n<p>Paste the following into the file.<\/p>\n<pre>[Unit]\r\nDescription = GlassFish Server v6\r\nAfter = syslog.target network.target\r\n\r\n[Service]\r\nUser=glassfish\r\nExecStart=\/opt\/glassfish6\/bin\/asadmin start-domain\r\nExecReload=\/opt\/glassfish6\/bin\/asadmin restart-domain\r\nExecStop=\/opt\/glassfish6\/bin\/asadmin stop-domain\r\nType = forking\r\n\r\n[Install]\r\nWantedBy = multi-user.target<\/pre>\n<p>Save the file then exit from the nano editor by pressing CTRL + O then CTRL + X on your keyboard.<\/p>\n<p>Next, we need to reload systemctl every time we create or modify a systemd file.<\/p>\n<pre># systemctl daemon-reload<\/pre>\n<p>Then, we should be able to run GlassFish using the command below.<\/p>\n<pre># systemctl start glassfish<\/pre>\n<p>At this point, you should be able to access GlassFish at http:\/\/YOUR_IP_ADDRESS:8080<\/p>\n<p><img decoding=\"async\" class=\"size-large wp-image-41547 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-1024x312.jpg\" alt=\"\" width=\"1024\" height=\"312\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-1024x312.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-300x91.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-150x46.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-768x234.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-1536x468.jpg 1536w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage-1320x402.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_homepage.jpg 1609w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Configure-GlassFish\"><\/span>Step 6. Configure GlassFish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Unlike any other CMS that provides an administrative page in a subdirectory under the same homepage, to configure and manage your GlassFish website you need to access the backend at http:\/\/YOUR_IP_ADDRESS:4848. Now, let&#8217;s navigate to http:\/\/YOUR_IP_ADDRESS:4848 to access the backend.<\/p>\n<p><img decoding=\"async\" class=\"size-large wp-image-41548 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error-1024x544.jpg\" alt=\"\" width=\"1024\" height=\"544\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error-1024x544.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error-300x159.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error-150x80.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error-768x408.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_admin_error.jpg 1040w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>At this point, you will see an error message when accessing http:\/\/YOUR_IP_ADDRESS:4848, it&#8217;s because we need to configure the admin user password and enable secure admin access.<\/p>\n<p>Run this command below to create an admin password.<\/p>\n<pre># \/opt\/glassfish6\/bin\/asadmin --port 4848 change-admin-password<\/pre>\n<p>You will be asked to create an admin user, or leave it as the default user called &#8216;admin&#8217;, hit enter if you want to leave it as &#8216;admin&#8217;<\/p>\n<p>Then, enter the &#8216;admin&#8217; password, just hit ENTER again because it does not have a password at this time.<\/p>\n<p>Next, it will ask you to type a new password, then you need to confirm the new password. The new password is now set and you will see an output like this:<\/p>\n<pre>Command change-admin-password executed successfully.<\/pre>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-41549\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_change_admin_password.jpg\" alt=\"\" width=\"695\" height=\"108\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_change_admin_password.jpg 695w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_change_admin_password-300x47.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_change_admin_password-150x23.jpg 150w\" sizes=\"(max-width: 695px) 100vw, 695px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Then, enable the secure admin feature to be able to log in to ip:4848 in your web browser.<\/p>\n<pre># \/opt\/glassfish6\/bin\/asadmin --port 4848 enable-secure-admin<\/pre>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-41550\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_secure_admin.jpg\" alt=\"\" width=\"688\" height=\"98\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_secure_admin.jpg 688w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_secure_admin-300x43.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_secure_admin-150x21.jpg 150w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>After enabling the secure admin feature, restart GlassFish then you can go to http:\/\/YOUR_IP_ADDRESS:4848 to log in and access the dashboard using the new credentials. This time, it will ask you for the admin&#8217;s username and password without seeing the error message.<\/p>\n<pre># systemctl restart glassfish<\/pre>\n<p><img decoding=\"async\" class=\"size-large wp-image-41551 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-1024x391.jpg\" alt=\"\" width=\"1024\" height=\"391\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-1024x391.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-300x115.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-150x57.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-768x293.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-1536x587.jpg 1536w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard-1320x504.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/glassfish_dashboard.jpg 1841w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Congratulation! You have successfully installed GlassFish on <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Ubuntu 22.04 VPS<\/a>.<\/p>\n<p>Of course, if you are one of our Ubuntu Hosting customers, you don\u2019t have to install GlassFish on Ubuntu 22.04 yourself. Simply log in to our client area and then submit a ticket, one of our admins will install GlassFish on Ubuntu 22.04 for you immediately without any additional fee, along with many useful optimizations that we can do for you. Managing a GlassFish-based website is not just about the installation, we can help you with optimizing your GlassFish installation if you have a <a href=\"https:\/\/www.rosehosting.com\">VPS with us<\/a>.<\/p>\n<p>If you liked this post about how to install GlassFish on Ubuntu 22.04, please share it with your friends on social networks or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GlassFish is an open-source Jakarta EE platform application server. It was initially developed by Sun Microsystems, then sponsored by Oracle &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install GlassFish on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#more-41546\" aria-label=\"Read more about How to Install GlassFish on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":42450,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1712],"tags":[],"class_list":["post-41546","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-frameworks","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 GlassFish on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.\" \/>\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-glassfish-on-ubuntu-22-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 GlassFish on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-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-07-04T17:30:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-05T11:25:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp\" \/>\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\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install GlassFish on Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.\" \/>\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=\"6 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-glassfish-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install GlassFish on Ubuntu 22.04\",\"datePublished\":\"2022-07-04T17:30:31+00:00\",\"dateModified\":\"2022-12-05T11:25:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/\"},\"wordCount\":889,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/how-to-install-glassfish-on-ubuntu-22.04.webp\",\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/\",\"name\":\"How to Install GlassFish on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/how-to-install-glassfish-on-ubuntu-22.04.webp\",\"datePublished\":\"2022-07-04T17:30:31+00:00\",\"dateModified\":\"2022-12-05T11:25:40+00:00\",\"description\":\"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/how-to-install-glassfish-on-ubuntu-22.04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/how-to-install-glassfish-on-ubuntu-22.04.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install glassfish on ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install GlassFish on Ubuntu 22.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 GlassFish on Ubuntu 22.04 | RoseHosting","description":"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.","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-glassfish-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install GlassFish on Ubuntu 22.04","og_description":"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-07-04T17:30:31+00:00","article_modified_time":"2022-12-05T11:25:40+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install GlassFish on Ubuntu 22.04","twitter_description":"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install GlassFish on Ubuntu 22.04","datePublished":"2022-07-04T17:30:31+00:00","dateModified":"2022-12-05T11:25:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/"},"wordCount":889,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp","articleSection":["Tutorials","Ubuntu","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/","name":"How to Install GlassFish on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp","datePublished":"2022-07-04T17:30:31+00:00","dateModified":"2022-12-05T11:25:40+00:00","description":"Wondering how to install GlassFish on Ubuntu 22.04? Take a look at our tutorial to learn more about this topic.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/how-to-install-glassfish-on-ubuntu-22.04.webp","width":742,"height":372,"caption":"how to install glassfish on ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install GlassFish on Ubuntu 22.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\/41546","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=41546"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/41546\/revisions"}],"predecessor-version":[{"id":43697,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/41546\/revisions\/43697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/42450"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=41546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=41546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=41546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}