How to Check Java Version on Windows

July 19, 2024

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
Sara Zivanov
Sara Zivanov is a technical writer at phoenixNAP who is passionate about making high-tech concepts accessible to everyone. Her experience as a content writer and her background in Engineering and Project Management allows her to streamline complex processes and make them user-friendly through her content.
Next you should read
How to Use JavaScript to Get the Current Date and Time
December 6, 2023

The Date object is useful for checking the date that visitors arrive at your website. This guide will walk you through...
Read more
How to Install Java on Windows
November 30, 2023

The Java Development Kit (JDK) is a programming kit for creating Java programs. This tutorial shows how to install and configure...
Read more
How to Install Java on Ubuntu
September 21, 2023

Java is one of the most popular programming languages used for developing anything from lightweight mobile to desktop applications. This step-by-step guide...
Read more
How to Check Java Version Installed on Linux
October 2, 2024

Need to check your Java version? Use one of these three methods to find the Java version installed on your system…
Read more