{"id":757,"date":"2019-02-06T15:31:06","date_gmt":"2019-02-06T21:31:06","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=757"},"modified":"2019-02-13T12:55:23","modified_gmt":"2019-02-13T18:55:23","slug":"how-to-run-java-files-on-centos-with-the-jre","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/","title":{"rendered":"How to Run Java Files on CentOS with the JRE"},"content":{"rendered":"<div id=\"linux-488932897\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform independence. For example, if you find a java utility that can minify, compress, and concatenate static files like JS and CSS for your website, you can download and use it on your own web server, regardless of the operating system.<\/p>\n<p>But, you can&#8217;t run these jar files by default on any given Linux installation. A special interpreter needs to interpret the &#8220;bytecode&#8221; that they contain, and that is what the Java Runtime Environment (JRE) provides. Most Linux packages can be installed by using either the default repositories or by using the extended ones. (In the case of CentOS, these are the &#8220;EPEL&#8221; repositories.)<\/p>\n<p>However, Java isn&#8217;t one of them. You need to download it from Oracle&#8217;s website and consent to a license agreement. In fact, this can be a bit of a problem as shown below.<\/p>\n<p><!--more--><\/p>\n<p>In this tutorial, we will show you how to install the Java SE JRE on Linux so that we can run these files.<\/p>\n<h2>Getting the RPM Packages<\/h2>\n<p>If you open your server CLI and type &#8220;java&#8221;, nothing happens:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-759\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Command-Not-Found.jpg\" alt=\"\" width=\"720\" height=\"319\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Command-Not-Found.jpg 720w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Command-Not-Found-300x133.jpg 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>To get this command along with its features, navigate to the <a href=\"https:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">JRE download page<\/a> and select the &#8220;JRE&#8221; download. This will bring you to a page with a list of packages. To find the one we want, we first need to get the architecture of your system &#8211; either 32-bit, or 64-bit. Type the following command:<\/p>\n<pre>arch<\/pre>\n<p>And you should get an output similar to this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-760\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/System-Architecture.jpg\" alt=\"\" width=\"744\" height=\"225\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/System-Architecture.jpg 744w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/System-Architecture-300x91.jpg 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>If like on the above system your output is &#8220;x86_64&#8221;, then you have a 64-bit system. If on the other hand your output is i386, then you have a 32-bit system. In today&#8217;s world, most systems are going to be 64-bit unless it&#8217;s an older machine.<\/p>\n<h2>Downloading the RPM Package<\/h2>\n<p>Unfortunately, you can&#8217;t just copy the link and download it to your system with wget. If you try, something similar to this will happen when you attempt to execute the rpm file with &#8220;yum localinstall&#8221;.<\/p>\n<p>You&#8217;ll get an error saying &#8220;Cannot open&#8221; and &#8220;Skipping&#8221;.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-761\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Cannot-Install-RPM.jpg\" alt=\"\" width=\"735\" height=\"267\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Cannot-Install-RPM.jpg 735w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Cannot-Install-RPM-300x109.jpg 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>This is because you&#8217;ll get a license agreement instead of an RPM file. Oracle <i>really<\/i> wants to make sure that whoever downloads these files has agreed to their terms and conditions. In fact, the Java cookbook<span class=\"Apple-converted-space\">\u00a0<\/span>README.md specifies this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-762\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Java-Documentation.jpg\" alt=\"\" width=\"709\" height=\"338\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Java-Documentation.jpg 709w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Java-Documentation-300x143.jpg 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/p>\n<p>Luckily, there are a couple of methods to agree to this agreement and download the files you need.<\/p>\n<h2>Method 1: Download with Browser<\/h2>\n<p>The most direct way is to accept the graphical license agreement, and click the appropriate download as shown here:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-763\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Download-RPM-File.jpg\" alt=\"\" width=\"685\" height=\"465\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Download-RPM-File.jpg 685w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Download-RPM-File-300x204.jpg 300w\" sizes=\"(max-width: 685px) 100vw, 685px\" \/><\/p>\n<p>This will initiate the download onto your desktop via your web browser. It&#8217;s a large(ish) file &#8211; around 155 MB as of this article. Once it&#8217;s done, you will need to transfer the file onto your server either via FTP, or by placing it in a download location that your server can access and obtain with wget.<\/p>\n<h2>Method 2: Fooling the JRE Server with the Use of a Cookie<\/h2>\n<p>This &#8220;hacky&#8221; solution will download the file directly onto your server. But the way it&#8217;s done means that it might stop working in the future. This method worked at the time of the article being written.<\/p>\n<p>First, get the name of the URL containing the RPM download. Then enter the following command:<\/p>\n<pre>wget --no-cookies --no-check-certificate --header \"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \"<i>[DownloadURL]<\/i>\"<\/pre>\n<p>Replace <i>[DownloadURL]<\/i> with the name of the URL on the page. This time, you should obtain the full download instead of only a few KB containing the license agreement.<\/p>\n<h2>Installing and Verifying the JRE Environment<\/h2>\n<p>Execute the rpm file using this command:<\/p>\n<pre>yum localinstall <i>[DownloadedFile]<\/i><\/pre>\n<p>It should install normally like this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-764\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Install-Package.jpg\" alt=\"\" width=\"685\" height=\"461\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Install-Package.jpg 685w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Install-Package-300x202.jpg 300w\" sizes=\"(max-width: 685px) 100vw, 685px\" \/><\/p>\n<p>Once the install is complete, check whether the &#8220;java&#8221; command is working as it should:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-765\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Check-Java-Version.jpg\" alt=\"\" width=\"679\" height=\"230\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Check-Java-Version.jpg 679w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/01\/Check-Java-Version-300x102.jpg 300w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/p>\n<p>And that&#8217;s it! You&#8217;ve successfully installed the latest version of the Java JRE on Linux. You can now run all kinds of &#8220;jar&#8221; files without worrying about compatibility issues.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/linuxhostsupport.com\">Outsourced server support services<\/a>, in which case you can simply ask our expert Linux admins to install the JRE for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post, please share it with your friends on the social networks using the buttons on the left, or simply leave a reply below. Thanks.<\/p><div id=\"linux-2316892041\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform independence. For example, if you find a java utility that can minify, compress, and concatenate static files like JS and CSS for your website, you can download and use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":767,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[17,126,127],"class_list":["post-757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-centos","tag-java","tag-jre"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Run Java Files on CentOS with the JRE | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Run Java Files on CentOS with the JRE | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-06T21:31:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-13T18:55:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Run Java Files on CentOS with the JRE\",\"datePublished\":\"2019-02-06T21:31:06+00:00\",\"dateModified\":\"2019-02-13T18:55:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\"},\"wordCount\":753,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg\",\"keywords\":[\"centos\",\"java\",\"jre\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\",\"name\":\"How to Run Java Files on CentOS with the JRE | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg\",\"datePublished\":\"2019-02-06T21:31:06+00:00\",\"dateModified\":\"2019-02-13T18:55:23+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg\",\"width\":750,\"height\":410,\"caption\":\"Run Java on CentOS with JRE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Run Java Files on CentOS with the JRE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Run Java Files on CentOS with the JRE | LinuxHostSupport","description":"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform","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:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/","og_locale":"en_US","og_type":"article","og_title":"How to Run Java Files on CentOS with the JRE | LinuxHostSupport","og_description":"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-02-06T21:31:06+00:00","article_modified_time":"2019-02-13T18:55:23+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Run Java Files on CentOS with the JRE","datePublished":"2019-02-06T21:31:06+00:00","dateModified":"2019-02-13T18:55:23+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/"},"wordCount":753,"commentCount":2,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg","keywords":["centos","java","jre"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/","name":"How to Run Java Files on CentOS with the JRE | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg","datePublished":"2019-02-06T21:31:06+00:00","dateModified":"2019-02-13T18:55:23+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"There is a large amount of useful software for Linux packaged away in jar files, the main reason and benefit being that it allows for platform","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/10\/run-java-centos-jre.jpg","width":750,"height":410,"caption":"Run Java on CentOS with JRE"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-run-java-files-on-centos-with-the-jre\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Run Java Files on CentOS with the JRE"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=757"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/757\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/757\/revisions\/783"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/767"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}