What is JRE?Last Updated : 17 Mar 2025 Java Run-time Environment (JRE) is the part of the Java Development Kit (JDK). It is a freely available software distribution which has Java Class Library, specific tools, and a stand-alone JVM. It is the most common environment available on devices to run java programs. The source Java code gets compiled and converted to Java bytecode. If you wish to run this bytecode on any platform, you require JRE. The JRE loads classes, verify access to memory, and retrieves the system resources. JRE acts as a layer on the top of the operating system. It also includes:
What does JRE consist of?JRE consists of the following components:
How does JRE work with JVM?![]() JRE has an instance of JVM with it, library classes and development tools. To understand the working of JRE let us see an example of a simple "Hello World" program. Once you write this program, you have to save it with .java extension. Compile your program. The output of the Java compiler is a byte-code which is platform independent. After compiling, the compiler generates a .class file which has the bytecode. The bytecode is platform independent and runs on any device having the JRE. From here, the work of JRE begins. To run any Java program, you need JRE. The flow of the bytecode to run is as follows: ![]() The following steps take place at runtime:
In this way, the program runs in JRE. How to set up Java JRE with PATH Environment Variables?To develop or run Java applications, you need to download and install the Java SE Development Kit. Step 1.) Download the Java SE latest release from the official site of the oracle. ![]() Step 2.) After downloading the file, you will have an executable file downloaded. Run that file and keep everything as default and keep clicking next and then install. Step 3.) After completing the installation, your JDK and JRE would be downloaded in the program files folder. Step 4.) After complete installation, you need to set up the environment variables. Step 5.) Go to control panel -> System and Security -> System -> Advanced System Settings. The following dialog box will appear. ![]() Step 6.) Click on Environment Variables, go to system variables, and double click on Path. ![]() Step 7.) Now add the path of your bin file present in the JRE file to the Path variable. ![]() The set up Java environment is complete. Difference between JVM, JDK, and JRE
Next TopicJava Tutorial |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India





