If you’ve been working with Java or installing it recently, you might need to confirm which version is currently installed on your Windows 11 PC. Checking your Java version helps you ensure compatibility with development tools like IntelliJ IDEA, Eclipse, or NetBeans — and helps you know if an update is needed.
In this guide, we’ll show you how to check your Java version on Windows 11 using different methods, including the Command Prompt, PowerShell, and Control Panel. Whether you’re setting up a development environment or troubleshooting Java errors, these steps will give you accurate version details in seconds.
Method 1: Check Java Version Using Command Prompt
This is the quickest and most reliable method.
1. Press Windows + S, type cmd, and click Run as Administrator.
2. In the Command Prompt window, type the following command and hit Enter: java -version
3. You’ll see output similar to:
java version "25"
Java(TM) SE Runtime Environment (build 25.0.1+11-LTS)
Java HotSpot(TM) 64-Bit Server VM (build 25.0.1+11-LTS, mixed mode)
This tells you the exact Java version installed on your system. If you see an error like “‘java’ is not recognized as an internal or external command”, that means Java is not added to your system PATH or isn’t installed properly.
Method 2: Check Java Version Using PowerShell
You can also use PowerShell to check your Java version:
- Press Windows + X and select Windows PowerShell (Admin).
- Type the same command:
java -version - You’ll see version details printed on the screen.
PowerShell gives you the same output as Command Prompt, but it’s more script-friendly if you plan to automate Java-related tasks.
Method 3: Check the Java Version from the Control Panel
If you installed Java using the Oracle installer, you can check it from the Control Panel as well:
- Press Windows + S and search for Control Panel.
- Open it, then click Programs → Java (or Java (32-bit)).
- In the Java Control Panel, click the About button under the General tab.
- A small dialog box will show your Java version, such as:
Version 25.0.1 (build 25.0.1+11-LTS)
This method is handy for users who prefer a graphical interface instead of command-line tools.
Method 4: Check Installed Java Versions via Environment Variables
Sometimes, multiple Java versions may be installed. To verify which one your system is using:
- Press Windows + R, type
sysdm.cpl, and press Enter. - Go to the Advanced tab → click Environment Variables.
- Under System Variables, look for:
JAVA_HOME→ points to your active JDK folderPath→ includes the path to your Javabindirectory
For example:
JAVA_HOME = C:\Program Files\Java\jdk-25
This confirms that Java 25 is the active version in use.
Method 5: Check Java Version in an IDE (Optional)
If you’re using an IDE like IntelliJ IDEA, Eclipse, or NetBeans, you can check the Java version it’s using for your project:
- In IntelliJ IDEA:
Go to File → Project Structure → Project SDK - In Eclipse:
Go to Window → Preferences → Java → Installed JREs
This helps ensure your IDE is configured to use the correct JDK version.
Why Checking Your Java Version Matters
Knowing your Java version is crucial because:
- Older versions may cause compatibility issues or security vulnerabilities.
- Newer JDKs like Java 25 include performance improvements and better language features.
- Development tools require specific Java versions for optimal performance.
Final Thoughts
If you encounter the error message “‘java’ is not recognized as an internal or external command” or don’t get any output when trying to run Java, it may indicate that Java is either not installed correctly or its path hasn’t been added to your system’s environment variables. In this case, you may need to reinstall Java or manually add it to your PATH. To do so, you can refer to our detailed guide on how to add Java to the PATH in Windows 11.
And that’s it — you’ve successfully checked your Java version on Windows 11! Whether you’re confirming your setup for Java development or troubleshooting a problem, knowing the exact Java version installed will save you time and confusion later.
If you find that you’re running an outdated version, make sure to update to the latest Java release (Java 25) to take advantage of new features, security updates, and performance improvements.