JRE (Java Runtime Environment)


Understanding about the JRE (Java Runtime Environment) is not going to enhance your Java programming skills, but will help you to learn how the java programs developed by you is run by the computer.

To develop a Java program. The first thing that you do is write the codes and compile them to create the program with the help of JDK (Java development kit). The second thing you do is run the program in your system, to test that everything is working fine. The program only runs when JRE is already install in your computer. JRE is a part of JDK, which means when you install JDK, you also install JRE. Although you can install JRE separately, we will see that later.

JRE consists of JVM (Java Virtual Machnice), core classes and supporting files (libraries). JVM is an abstract computing machine that runs the Java program with the help of core classes and supporting files. In short, JRE consists of essential components that are required to run the Java application.

As mentioned above that JRE comes within JDK but you can install it separately. Here are the steps to setup JRE.

  1. Open Java SE download page.
  2. Search for the latest update (e.g. Java SE 9.0.4), and click JRE Download.
  3. Accept the user agreement, and download the setup file.
  4. Run the setup file.
  5. Click Install, and wait for the installation to get complete.
  6. Click Close.

You can also check out the steps to install JDK.

This section ends here, but will update it when I find something interesting.