you might need to add path in environment variables which you can find in Control Panel open the Jdk where you installed and add until /bin in the path in environment variables.

Add until /bin in path variable in System Variables which is residing in Environment Variables.

Then do java -version which might show up.

If still problem persists, try restarting your pc and see.

Answer from ganga on Stack Overflow
🌐
Oracle
java.com › en › download › help › version_manual.html
How to find Java version in Windows or Mac - Manual method
Type the following in a Terminal window: /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
Discussions

CMD does not recognize the java -version command?
But what's in PATH though? Remove old Java directories from this variable and keep only the right one, better to write just "${JAVA_HOME}/bin" instead of full paths More on reddit.com
🌐 r/javahelp
13
0
August 15, 2025
Can anyone tell me how to check JDK version? Not Java Version. JDK
Go to Program Files\Java and look at the JDK folder name. More on reddit.com
🌐 r/java
6
0
February 4, 2011
CMD shows nothing when putting 'java -version'
After you install Java you have to set up your PATH environment variable to include the JDK. This tells Windows where to look whenever you're trying to execute java or javac. To do this in windows just type Environment Variables into your start menu. Go into it, double click on PATH to open it, scroll to the end, put in a semi-colon and the path to your JDK. Then re-launch CMD (you have to close and reopen the window) and you should be able to do Java --version and get a response. More on reddit.com
🌐 r/javahelp
5
3
February 14, 2022
Switch between java versions with a command on Windows
So is there a way I can switch between my instaled jdks? For example if I have installed jdk8 and jdk16 I can run a batch file and switch the version… More on reddit.com
🌐 r/javahelp
14
3
September 21, 2021
🌐
Wikihow
wikihow.com › computers and electronics › software › programming › java › how to check your java version in the windows command line
How to Check Your Java Version in the Windows Command Line
February 24, 2025 - No matter which version of Windows you're using, you can type "java -version" into the command prompt (cmd) to see the version number of your Java installation. This wikiHow article will teach you how to use the command prompt to find out which ...
🌐
TechBloat
techbloat.com › home › how to check java version in cmd windows 10: a simple guide
How to Check Java Version in CMD Windows 10: A Simple Guide - TechBloat
June 26, 2025 - The most straightforward way to determine your Java version on Windows 10 is through the Command Prompt. Press Windows + R to open the Run dialog. Type cmd and press Enter.
🌐
Support Your Tech
supportyourtech.com › home › articles › how to check java version in cmd windows 10: a simple guide
How to Check Java Version in CMD Windows 10: A Simple Guide
August 22, 2024 - The output shows the version number, build number, and other relevant details about your Java installation. Knowing your Java version helps ensure compatibility with Java applications and development tools you are using. Press Windows key + R. Type ...
🌐
How-To Geek
howtogeek.com › home › windows › how to check your java version on windows 10
How to Check Your Java Version on Windows 10
January 8, 2024 - Then click "About" to see your Java version. If you don't see either the About Java or Configure Java tools, you likely don't have Java installed. You can download it from Oracle's official website. You can check your Java version from the Command Prompt, too.
Find elsewhere
🌐
H2S Media
how2shout.com › home › tutorial › how to check jdk version in cmd – windows 10 or 11
How to Check JDK Version in CMD - Windows 10 or 11 - H2S Media
February 3, 2024 - You can use PowerShell, however here we are using the Command prompt to check the version of the installed Java. So, either press Windows Key + R to open the Run dialog and type cmd to open command prompt ...
🌐
Scaler
scaler.com › home › topics › how to check java version?
How to Check Java Version? - Scaler Topics
March 21, 2024 - As we can see in the above image "1.8.0_21" is the current java version installed in the Windows OS. ... Search for Control Panel on the search bar present in the bottom left corner. Click on the Control Panel in the search panel to open. ... Click on the About button to know the version of java version installed on the machine. In this case go to settings. Click on apps and features. Search Java in the search bar.
🌐
GeeksforGeeks
geeksforgeeks.org › java › different-ways-to-check-java-version-in-windows
Different Ways To Check Java Version In Windows - GeeksforGeeks
July 23, 2025 - java -version // CMD/Terminal command to check java version on the machine · In the case of Windows OS: It is showing java is installed on the machine with version 1.8.0 (See carefully at line number 5)
🌐
Itview
itview.in › blog › java › how-to-check-java-version-in-cmd-a-quick-and-easy-guide
How to Check Java Version in CMD: A Quick and Easy Guide
January 23, 2025 - Many courses require students to ... need to open the Command Prompt (CMD) on your computer: For Windows: Press Windows + R, type cmd, and hit Enter....
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to check java version on windows
How to Check Java Version on Windows | Knowledge Base by phoenixNAP
December 22, 2025 - You can use the GUI (via the Windows Control Panel) or the command prompt. To find the Java version on your Windows via the GUI, use the Control Panel.
🌐
Prospera Soft
prosperasoft.com › blog › full-stack › backend › java › checking-java-version-in-cmd-a-step-by-step-guide
Check Java Version in CMD: Easy Guide
To check your Java version using the command line, you'll first need to open the Command Prompt. On Windows, you can do this by pressing 'Windows + R', typing 'cmd', and then hitting enter.
🌐
Super User
superuser.com › questions › 1738872 › how-to-detect-java-by-cmd-after-installing-it-without-restarting-the-pc-in-win
command line - How to detect java by cmd, after installing it, without restarting the PC in windows 10 - Super User
August 24, 2022 - You should check the output. Lots of breaks. In the end it does not find the patterns. Take your time. Do tests. It should work for any version of java ... I did test (with installed java) both scripts on windows 10, what return do you get when you enter reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s /f *jre* in cmd...
🌐
T Wallet
twallet.telangana.gov.in › TABiometric › data › Java Check.pdf pdf
How to check whether java is installed on the computer?
This document instructs you on how to use check if JAVA is installed or not, If already installed · then the Version Number of the installed one. These instructions are specialized to Windows 7, but are similar for Windows 10, Windows 8, Windows XP and Windows Vista.
🌐
Client Portal
service.emich.edu › TDClient › 30 › Portal › KB › ArticleDet
Determine Java version on Windows
You can quickly determine the default ... AppMan users · Click on the Start Menu · Type CMD and press Enter · At the command prompt, type java -version ·...
🌐
Mkyong
mkyong.com › home › java › how to check the installed jdk version on your computer
How to check the installed JDK version on your computer - Mkyong.com
November 26, 2024 - We can use the command java -version to check the installed JDK version on your computer. ... On Windows, open the Command Prompt cmd.
🌐
HubSpot
blog.hubspot.com › home › website › how to check your java version in windows & mac
How to Check Your Java Version in Windows & Mac
February 27, 2025 - You can also check your Java version in Windows using the command line. First, click on the magnifying glass and type “cmd”, then click on the Command Line app icon that appears.