How to jre version

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: To check your installed Java Runtime Environment (JRE) version, you can use the command prompt or terminal. Open the command prompt and type 'java -version' and press Enter. The output will display the exact JRE version currently active on your system.

Key Facts

What is the Java Runtime Environment (JRE)?

The Java Runtime Environment (JRE) is a set of software components that allows your computer to run applications written in the Java programming language. It is distinct from the Java Development Kit (JDK), which includes the JRE along with tools for developing Java applications. Essentially, if you want to run a Java program, you need the JRE installed on your system. Without it, you'll likely encounter errors or be prompted to install it.

Why is it Important to Know Your JRE Version?

Knowing your JRE version is crucial for several reasons:

How to Check Your JRE Version on Different Operating Systems

The most common and straightforward method to check your JRE version is by using the command line interface (CLI). The specific steps vary slightly depending on your operating system.

On Windows:

  1. Open the Command Prompt: Press the Windows key + R, type cmd, and press Enter. Alternatively, search for 'Command Prompt' in the Start menu.
  2. Type the Command: In the Command Prompt window, type the following command and press Enter: java -version
  3. Interpret the Output: The command prompt will display information about the installed Java version. Look for a line that starts with 'java version' followed by the version number (e.g., 'java version "1.8.0_301"' or 'java version "11.0.12"').

On macOS:

  1. Open Terminal: You can find the Terminal application in the Applications folder, under Utilities, or by searching for 'Terminal' using Spotlight (Command + Space).
  2. Type the Command: In the Terminal window, type the following command and press Enter: java -version
  3. Interpret the Output: Similar to Windows, the output will show the installed Java version.

On Linux:

  1. Open Terminal: Most Linux distributions provide a Terminal application in their application menu.
  2. Type the Command: In the Terminal window, type the following command and press Enter: java -version
  3. Interpret the Output: The output will display the Java version information.

Understanding the Output

The output of the java -version command might look something like this:

java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)

Or for a newer version:

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb11u1, mixed mode)

Key elements to note:

It's important to distinguish between Oracle's official Java SE builds and OpenJDK builds. While both provide the JRE, they are maintained by different entities. For most users, the version number is the primary concern.

What if the 'java' command is not recognized?

If you type java -version and receive an error like 'java is not recognized as an internal or external command, operable program or batch file' (on Windows) or 'command not found' (on macOS/Linux), it means that either Java is not installed on your system, or the Java installation directory is not added to your system's PATH environment variable. In such cases, you will need to download and install the appropriate JRE or JDK from a trusted source like Oracle or Adoptium (for OpenJDK builds).

Java Versions and Support Lifecycles

Oracle provides different types of Java releases:

It's generally recommended to use an LTS version that is still actively supported to ensure you receive security updates. You can check Oracle's official Java SE Support Roadmap for detailed information on release dates and end-of-life dates for various versions.

Conclusion

Checking your JRE version is a simple yet important task for maintaining system security and ensuring application compatibility. By using the java -version command in your system's terminal or command prompt, you can quickly identify your installed version and determine if an update is necessary.

Sources

  1. Java (programming language) - WikipediaCC-BY-SA-4.0
  2. Java SE Runtime Environment Downloads - Oraclefair-use
  3. Adoptium - Eclipse Temurinfair-use

Missing an answer?

Suggest a question and we'll generate an answer for it.