{"id":29418,"date":"2019-04-09T16:03:11","date_gmt":"2019-04-09T21:03:11","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29418"},"modified":"2022-12-08T10:57:29","modified_gmt":"2022-12-08T16:57:29","slug":"how-to-install-glassfish-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/","title":{"rendered":"How to Install GlassFish on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-30215\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg\" alt=\"Install GlassFish on Ubuntu 18\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><strong>GlassFish<\/strong> is a fully-fledged open-source reference implementation of Java EE application server for developing and deploying Java-based applications. It supports JPA, JSF, JSP\/Servlet, JMS,\u00a0RMI, as well as many other Java-based technologies. It also provides both web and CLI-based administration consoles for easier configuration and management of your Java applications and their respective components.<\/p>\n<p><strong>GlassFish<\/strong> is being maintained and developed through the <a href=\"https:\/\/javaee.github.io\/glassfish\/\">GlassFish Project<\/a>. It is licensed under the Common Development and Distribution License (CDDL) as well as the GNU General Public License (GPL). The project is currently sponsored by Oracle.<\/p>\n<p><!--more--><\/p>\n<p>In this article, we will show you how to install GlassFish on a<strong><a href=\"https:\/\/www.rosehosting.com\/blog\/what-is-linux-vps-hosting\/\"> Linux VPS<\/a><\/strong> with Ubuntu 18.04 OS.<\/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-69fad13c4d13f\" 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-69fad13c4d13f\"  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-18-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-18-04\/#Install-Updates-and-Fix-Dependencies\" >Install Updates and Fix Dependencies<\/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-18-04\/#Installing-the-Latest-GlassFish-Server\" >Installing the Latest GlassFish Server<\/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-18-04\/#Setting-Up-GlassFish-Service\" >Setting Up GlassFish Service<\/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-18-04\/#Managing-the-GlassFish-Service\" >Managing the GlassFish Service<\/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-18-04\/#Accessing-GlassFish\" >Accessing GlassFish<\/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-18-04\/#Setting-Up-the-GlassFish-Path\" >Setting Up the GlassFish Path<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#Securing-the-GlassFish-Admin-Console\" >Securing the GlassFish Admin Console<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#Testing-GlassFish\" >Testing GlassFish<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#Hi-my-name-is-Duke-Whats-yours\" >Hi, my name is Duke. What&#8217;s yours?<\/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>Make sure that your server meets the following minimum requirements:<\/p>\n<ul>\n<li>A VPS with Ubuntu 18.04 running on it (preferably a fresh installation)<\/li>\n<li>A user account with root access, or access to the &#8220;root&#8221; user<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Install-Updates-and-Fix-Dependencies\"><\/span>Install Updates and Fix Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your server via SSH:<\/p>\n<pre>ssh username@server_ip<\/pre>\n<p>Remember to replace &#8220;username&#8221; with the username which you wish to use on the server, as well as replacing &#8220;server_ip&#8221; with your server&#8217;s IP address.<\/p>\n<p>Before starting with the GlassFish Server installation, it is a good idea to update the system packages to their latest versions, if any are available:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<p>Install software package dependencies needed by GlassFish by running the following command:<\/p>\n<pre>sudo apt-get install software-properties-common wget unzip<\/pre>\n<h3>Installing and Configuring Java 8<\/h3>\n<p>Since GlassFish is powered by Java, it must be installed and configured on your Ubuntu server first. As of\u00a0writing, GlassFish 5.0 only supports Java 8.<\/p>\n<p>This command will install Oracle JDK 8 using the PPA repository:<\/p>\n<pre>sudo add-apt-repository ppa:webupd8team\/java\r\nsudo apt-get update\r\nsudo apt-get install oracle-java8-installer<\/pre>\n<p>After the installation, you can check the active Java version using this command:<\/p>\n<pre>sudo java -version<\/pre>\n<p>You should see the following message:<\/p>\n<pre>java version \"1.8.0_191\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_191-b12)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)<\/pre>\n<h3>Updating the Java Environment Variable<\/h3>\n<p>Most Java applications use the variable <code>JAVA_HOME<\/code> in determining the location of your Java installation.<\/p>\n<p>To check if you already have <code>JAVA_HOME<\/code> set, type the following command:<\/p>\n<pre>echo $JAVA_HOME<\/pre>\n<p>If you see a blank line, it means there is no configured <code>JAVA_HOME<\/code> variable. If there is, you can double check if it is using the correct path by following these next steps.<\/p>\n<p>To determine the current Java location, use the following command:<\/p>\n<pre>sudo update-alternatives --config java<\/pre>\n<p>The output should show you the Java installation path, like the following:<br \/>\n<code>\/usr\/lib\/jvm\/java-8-oracle\/jre\/bin\/java<\/code><\/p>\n<p>Now we need to append the Java location to our environment file. Modify the path accordingly based on your Java path:<\/p>\n<pre>sudo echo JAVA_HOME=\\\"\/usr\/lib\/jvm\/java-8-oracle\/bin\/java\\\" &gt;&gt; \/etc\/environment<\/pre>\n<p>After that, we will need to source the file to update our shell:<\/p>\n<pre>source \/etc\/environment<\/pre>\n<p>Now you can verify if <code>JAVA_HOME<\/code> is set by using either of\u00a0the following\u00a0commands:<\/p>\n<pre>echo $JAVA_HOME\r\n$JAVA_HOME -version<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Installing-the-Latest-GlassFish-Server\"><\/span>Installing the Latest GlassFish Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>At the time of writing, the current latest version of GlassFish Server is 5.0.1.<\/p>\n<p>First, we need to change our current directory to \/opt:<\/p>\n<pre>cd \/opt<\/pre>\n<p>We can now download the latest nightly build version of GlassFish from their official <a href=\"https:\/\/javaee.github.io\/glassfish\/download\">GlassFish website<\/a>.<\/p>\n<pre>sudo wget http:\/\/download.oracle.com\/glassfish\/5.0.1\/nightly\/latest-glassfish.zip<\/pre>\n<p>Extract the files to the current directory. You can choose a different directory if you wish to keep your installation of GlassFish elsewhere.<\/p>\n<pre>sudo unzip latest-glassfish.zip<\/pre>\n<p>To extract to a specific directory:<\/p>\n<pre>sudo unzip latest-glassfish.zip -d \/path\/to\/desired\/directory<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Setting-Up-GlassFish-Service\"><\/span>Setting Up GlassFish Service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create the service file:<\/p>\n<pre>sudo nano \/etc\/systemd\/system\/glassfish.service<\/pre>\n<p>Copy and paste the following. Modify the GlassFish path in respect to the directory of your GlassFish install:<br \/>\n<code>[Unit]<br \/>\nDescription = GlassFish Server v5.0<br \/>\nAfter = syslog.target network.target<\/code><\/p>\n<p><code>[Service]<br \/>\nExecStart=\/opt\/glassfish5\/bin\/asadmin start-domain<br \/>\nExecReload=\/opt\/glassfish5\/bin\/asadmin restart-domain<br \/>\nExecStop=\/opt\/glassfish5\/bin\/asadmin stop-domain<br \/>\nType = forking<\/code><\/p>\n<p><code>[Install]<br \/>\nWantedBy = multi-user.target<\/code><\/p>\n<p>Save and exit. Now we need to reload system services:<\/p>\n<pre>sudo systemctl daemon-reload<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Managing-the-GlassFish-Service\"><\/span>Managing the GlassFish Service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To enable GlassFish at boot:<\/p>\n<pre>sudo\u00a0systemctl\u00a0enable glassfish<\/pre>\n<p>To start GlassFish:<\/p>\n<pre>sudo\u00a0systemctl start glassfish<\/pre>\n<p>Check the service status using this command:<\/p>\n<pre>sudo\u00a0systemctl status glassfish<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Accessing-GlassFish\"><\/span>Accessing GlassFish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once GlassFish has started, you can now access the default page on port 8080.<br \/>\n<code>http:\/\/&lt;server-ip-address&gt;:8080<\/code><\/p>\n<p>You can access the web administrator console on port 4848.<\/p>\n<p><code>http:\/\/&lt;server-ip-address&gt;:4848<\/code><\/p>\n<p>Remember to replace &#8220;server-ip-address&#8221; with your server&#8217;s IP address.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Setting-Up-the-GlassFish-Path\"><\/span>Setting Up the GlassFish Path<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GlassFish has a utility called <code>asadmin<\/code> which accepts commands for setting up GlassFish via a command line. To run the\u00a0<code>asadmin<\/code> executable anywhere, execute the following command:<\/p>\n<pre>export PATH=\/opt\/glassfish5\/bin:$PATH<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Securing-the-GlassFish-Admin-Console\"><\/span>Securing the GlassFish Admin Console<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The default admin password is blank. To update the admin password, run the following command:<\/p>\n<pre>asadmin change-admin-password<\/pre>\n<p><code>Enter admin user name [default: admin]&gt;admin<br \/>\nEnter the admin password&gt; &lt;blank&gt;<br \/>\nEnter the new admin password&gt;<br \/>\nEnter the new admin password again&gt;<br \/>\nCommand change-admin-password executed successfully.<\/code><\/p>\n<p>After changing the admin password, we now need to enable the &#8220;secure admin&#8221; feature. It will ask for the credentials we added earlier.<\/p>\n<pre>asadmin enable-secure-admin<\/pre>\n<p>We must restart GlassFish for the changes to take effect:<\/p>\n<pre>sudo systemctl\u00a0restart glassfish<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Testing-GlassFish\"><\/span>Testing GlassFish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that we have a GlassFish Server that uses secure admin access, we can now test the server by deploying a sample WAR file.<\/p>\n<p>First, we need to download a sample WAR file on domain1&#8217;s document root directory:<\/p>\n<pre>cd \/opt\/glassfish5\/glassfish\/domains\/domain1\/docroot\/\u00a0\r\nsudo wget https:\/\/github.com\/dmatej\/Glassfish\/raw\/master\/v2\/www\/downloads\/quickstart\/hello.war<\/pre>\n<p>To deploy, run the following command. It will ask for admin credentials:<\/p>\n<pre>asadmin deploy hello.war<\/pre>\n<p>After successfully deploying, navigate to:<br \/>\n<code>http:\/\/&lt;server-ip-address&gt;:8080\/hello<\/code><\/p>\n<p>You should see the following message:<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Hi-my-name-is-Duke-Whats-yours\"><\/span>Hi, my name is Duke. What&#8217;s yours?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>And that&#8217;s it! You now have a working GlassFish server on your Ubuntu 18.04 VPS.<\/p>\n<p><strong>See related<\/strong>: <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-configure-glassfish-cluster-with-automatic-load-balancing\/\">How to configure GlassFish cluster with automatic load balancing<\/a><\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to <strong>install GlassFish on Ubuntu 18.04<\/strong> if you have use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/glassfish-hosting.html\">GlassFish Hosting<\/a> plans. If you do, you can simply ask our support team to install GlassFish on Ubuntu 18.04 for you. They are available 24\/7 and will be able to help you with the installation.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you enjoyed reading this blog post on how to install GlassFish on Ubuntu 18.04, feel free to share it on social networks by using the shortcuts below, or simply leave a comment. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GlassFish is a fully-fledged open-source reference implementation of Java EE application server for developing and deploying Java-based applications. It supports &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install GlassFish on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#more-29418\" aria-label=\"Read more about How to Install GlassFish on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":30215,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[165,77,1779],"class_list":["post-29418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-glassfish","tag-java","tag-ubuntu-18-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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install GlassFish on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install GlassFish on Ubuntu 18.04 | RoseHosting\" \/>\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-18-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 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install GlassFish on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-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=\"2019-04-09T21:03:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-08T16:57:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg\" \/>\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-glassfish-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install GlassFish on Ubuntu 18.04\",\"datePublished\":\"2019-04-09T21:03:11+00:00\",\"dateModified\":\"2022-12-08T16:57:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/\"},\"wordCount\":844,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/install-glassfish-ubuntu18.jpg\",\"keywords\":[\"glassfish\",\"java\",\"Ubuntu 18.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/\",\"name\":\"How to Install GlassFish on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/install-glassfish-ubuntu18.jpg\",\"datePublished\":\"2019-04-09T21:03:11+00:00\",\"dateModified\":\"2022-12-08T16:57:29+00:00\",\"description\":\"How to Install GlassFish on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/install-glassfish-ubuntu18.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/install-glassfish-ubuntu18.jpg\",\"width\":742,\"height\":372,\"caption\":\"Install GlassFish on Ubuntu 18\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-glassfish-on-ubuntu-18-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 18.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 18.04 | RoseHosting","description":"How to Install GlassFish on Ubuntu 18.04 | RoseHosting","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-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install GlassFish on Ubuntu 18.04","og_description":"How to Install GlassFish on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-04-09T21:03:11+00:00","article_modified_time":"2022-12-08T16:57:29+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg","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-glassfish-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install GlassFish on Ubuntu 18.04","datePublished":"2019-04-09T21:03:11+00:00","dateModified":"2022-12-08T16:57:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/"},"wordCount":844,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg","keywords":["glassfish","java","Ubuntu 18.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/","name":"How to Install GlassFish on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg","datePublished":"2019-04-09T21:03:11+00:00","dateModified":"2022-12-08T16:57:29+00:00","description":"How to Install GlassFish on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-glassfish-ubuntu18.jpg","width":742,"height":372,"caption":"Install GlassFish on Ubuntu 18"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-on-ubuntu-18-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 18.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\/29418","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=29418"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29418\/revisions"}],"predecessor-version":[{"id":43873,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29418\/revisions\/43873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/30215"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}