{"id":211,"date":"2020-10-21T14:32:51","date_gmt":"2020-10-21T14:32:51","guid":{"rendered":"https:\/\/usemynotes.com\/?p=211"},"modified":"2023-01-19T17:04:24","modified_gmt":"2023-01-19T17:04:24","slug":"what-is-java-runtime-environment","status":"publish","type":"post","link":"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/","title":{"rendered":"What is Java Runtime Environment?"},"content":{"rendered":"<p>In this tutorial, we will study <strong>what is Java runtime environment<\/strong> and we will look at the bigger picture which is actually the environment that contains Java components within it. We will take a look at the Java Runtime Environment, an environment that holds the well-known <strong>Java Virtual Machine<\/strong> (JVM).<\/p>\n<p>Let&#8217;s see what is Java runtime environment with a diagram.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><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><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#What_is_Java_Runtime_Environment\" >What is Java Runtime Environment?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#The_architecture_of_Java_Runtime_Environment\" >The architecture of Java Runtime Environment<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#UI_Tools_Java_Runtime_Environment\" >UI Tools Java Runtime Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#Integration_Tools_Java_Runtime_Environment\" >Integration Tools\u00a0Java Runtime Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#Other_in-built_libraries_Java_Runtime_Environment\" >Other in-built libraries Java Runtime Environment<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#Do_we_need_Java_Runtime_Environment_if_we_already_have_JDK\" >Do we need Java Runtime Environment if we already have JDK?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#What_to_only_have_Java_Runtime_Environment_and_not_the_JDK\" >What to only have Java Runtime Environment and not the JDK?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#How_to_download_Java_Runtime_Environment\" >How to download Java Runtime Environment?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#Step_1_Check_if_your_computer_already_has_JRE_pre-installed\" >Step 1: Check if your computer already has JRE pre-installed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/usemynotes.com\/what-is-java-runtime-environment\/#Step_2_Download_the_Java_Runtime_Environment_package\" >Step 2: Download the Java Runtime Environment package<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"What_is_Java_Runtime_Environment\"><\/span>What is Java Runtime Environment?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Java Runtime Environment<\/strong> (JRE) is a virtual environment that contains software tools and libraries that support the execution of a Java program. Without JRE a Java program or Java application cannot run in a system. JRE is responsible to load Java programs and applications into the <a href=\"https:\/\/usemynotes.com\/what-is-jvm-jit\/\">JVM<\/a> for execution. It also provides necessary libraries and a set of tools that are required for the execution.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-212 size-full\" title=\"What is Java Runtime Environment\" src=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/what-is-java-runtime-environment.jpg\" alt=\"What is Java Runtime Environment?\" width=\"504\" height=\"504\" srcset=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/what-is-java-runtime-environment.jpg 504w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/what-is-java-runtime-environment-300x300.jpg 300w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/what-is-java-runtime-environment-150x150.jpg 150w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/what-is-java-runtime-environment-420x420.jpg 420w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"The_architecture_of_Java_Runtime_Environment\"><\/span>The architecture of Java Runtime Environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Java environment is growing in architecture and evolving every single year. It is constantly being developed and maintained by Oracle Corporation. The architecture of JRE contains UI tools, Integration libraries, Base support libraries, and other utilities that work together to execute a Java program or Java application.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-213 size-large\" title=\"Architecture of JRE\" src=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-1024x555.jpg\" alt=\"The architecture of Java Runtime Environment\" width=\"1024\" height=\"555\" srcset=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-1024x555.jpg 1024w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-300x162.jpg 300w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-768x416.jpg 768w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-150x81.jpg 150w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-696x377.jpg 696w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-1068x580.jpg 1068w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre-775x420.jpg 775w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/architecture-of-jre.jpg 1466w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"UI_Tools_Java_Runtime_Environment\"><\/span>UI Tools Java Runtime Environment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The UI tools that JRE consists of are Java Abstract Window Toolkit (AWT) package, Java Swing package, Image parsing libraries, Java RX library, etc. These tools are well-known in the Java community for the UI experience.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Integration_Tools_Java_Runtime_Environment\"><\/span>Integration Tools\u00a0Java Runtime Environment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Integration tools in JRE are mostly used for remote working functionalities of Java. These tools consist of well-known Java Database Connectivity (JDBC) which is used for connecting Java applications and other external databases, Java Naming Directory Interface technology (JNDI) which allows Java clients to discover data using names, Remote Method Invocation (RMI) which is responsible for remote procedure calling, in short also known as RPC.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Other_in-built_libraries_Java_Runtime_Environment\"><\/span>Other in-built libraries Java Runtime Environment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Java consists of pre-built libraries that provide APIs which helps developers a lot with application development. Some of these libraries include but are not limited to I\/O libraries for Input\/output support, networking libraries for network connectivity of Java applications, and Logging libraries for debugging Java applications.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Do_we_need_Java_Runtime_Environment_if_we_already_have_JDK\"><\/span>Do we need Java Runtime Environment if we already have JDK?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>These days it is not necessary to install Java Runtime Environment externally. This is because JRE is made available with the JDK package. The JDK package contains both the JDK and JRE within it. All you have to do is install the JDK package and then you also have JRE in your system.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_to_only_have_Java_Runtime_Environment_and_not_the_JDK\"><\/span>What to only have Java Runtime Environment and not the JDK?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are users who are not developers or who don\u2019t develop Java applications. In that case, you don\u2019t require the development tools that are shipped with the JDK package. These users can download just the JRE part externally and install it on their computer to enable their computer to execute Java applications.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_download_Java_Runtime_Environment\"><\/span>How to download Java Runtime Environment?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The installation procedure is almost similar to the installation of the Java Development Kit (JDK). The only difference comes with the download package. For this tutorial, we will be covering the installation of JRE for the Windows 10 Operating System.<\/p>\n<p>To install JRE on your computer, follow these steps:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Check_if_your_computer_already_has_JRE_pre-installed\"><\/span>Step 1: Check if your computer already has JRE pre-installed<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To check whether JRE is pre-installed on the host machine or not, follow \u201c<a href=\"https:\/\/usemynotes.com\/how-to-install-java\/\">this post to check the version of java<\/a>\u201d. It is valid for checking the JRE installation. Then, follow Step 1 of the same.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Download_the_Java_Runtime_Environment_package\"><\/span>Step 2: Download the Java Runtime Environment package<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Go to the official Java website and browse through the <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javase-jre8-downloads.html\" rel=\"nofollow noopener\" target=\"_blank\">JRE packages<\/a>.<\/p>\n<p>After opening the given link, scroll down the page and click on the appropriate download link based on the type of host operating system that needs JRE installation.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-214 size-large\" title=\" Download the Java Runtime Environment\" src=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-1024x613.jpg\" alt=\" Download the Java Runtime Environment\" width=\"1024\" height=\"613\" srcset=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-1024x613.jpg 1024w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-300x180.jpg 300w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-768x460.jpg 768w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-1536x920.jpg 1536w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-150x90.jpg 150w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-696x417.jpg 696w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-1068x640.jpg 1068w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment-701x420.jpg 701w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/download-the-java-runtime-environment.jpg 1598w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>A window will appear to accept the license agreement for the download. Read it and make sure you agree with their terms and conditions. Once agreed, select the checkbox to accept the agreement and then click on the Download button.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-215 size-full\" title=\"JRE License Agreement\" src=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen.jpg\" alt=\"JRE License Agreement\" width=\"899\" height=\"331\" srcset=\"https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen.jpg 899w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen-300x110.jpg 300w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen-768x283.jpg 768w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen-150x55.jpg 150w, https:\/\/usemynotes.com\/wp-content\/uploads\/2020\/10\/jre-license-agreemen-696x256.jpg 696w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>You will be redirected to a login page where you will have to sign in using your Oracle credentials to start the download.<\/p>\n<p>Don\u2019t have an Oracle Account? follow the link given below to <a href=\"https:\/\/profile.oracle.com\/myprofile\/account\/create-account.jspx\" rel=\"nofollow noopener\" target=\"_blank\">create a new account<\/a>.<\/p>\n<p>Once the JRE installer is downloaded, open the installer package, and follow the installation wizard. Change the installation directory during the installation process (if necessary). It is recommended to let the defaults during installation.<\/p>\n<p>After completion of the installation, just repeat the part \u2018Check if your computer already has JRE preinstalled to make sure everything went well.<\/p>\n<p>Thanks for learning What is Java Runtime Environment? with me, I hope you live more tutorials for this type.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will study what is Java runtime environment and we will look at the bigger picture which is actually the environment that contains Java components within it. We will take a look at the Java Runtime Environment, an environment that holds the well-known Java Virtual Machine (JVM). Let&#8217;s see what is Java [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":{"0":"post-211","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-java-programming"},"_links":{"self":[{"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":0,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/usemynotes.com\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}