How to Check Java Version on Windows

By
Sara Zivanov
Published:
July 19, 2024
Topics:

Introduction

Java is an object-oriented and platform-independent programming language developed by Sun Microsystems. The compiled Java code runs on all platforms that support Java without the need for recompilation.

The following text elaborates on how to check the Java version on Windows.

How to Check Java version on Windows

Prerequisites

  • A system running Windows (this tutorial uses Windows 11).
  • Access to the command prompt.
  • Java installed.

 How to Check Java Version on Windows?

There are two ways to check the Java version on Windows. You can use the GUI (via the Windows Control Panel) or the command prompt. The following text shows how to use both methods.

Option 1: Check Java Version on Windows Using GUI

To find the Java version on your Windows via GUI, use the Control Panel. Follow these steps:

1. Open the Windows menu and type control panel in the search bar.

Searching for the control panel in the Windows start menu.

2. Find the Control Panel in the search results and click the icon to open it.

Opening the control panel on Windows

3. Open the Programs option.

programs in Control Panel

4. Find and click the Java icon.

Control Panel Java

5. Once the settings open, click the About button.

The about button

6. The About Java window appears and displays the Java version on your computer.

Java version

Option 2: Check Java Version on Windows Using Command Line

Another option to find the Java version on Windows is through the command line. Follow these steps:

1. Open the Windows Start menu and type cmd in the search bar.

Type cmd

2. Open the Command Prompt once it appears in the search results.

Open command prompt on Windows

3. Type the following command:

java -version
Java -version terminal output

The output displays the Java version installed on your Windows system.

Conclusion

This article explained how to check the version of Java installed on a Windows system using a GUI or command prompt.

Next, learn more about Java Platform and Java EE.

Was this article helpful?
YesNo