How to Check Your Java Version in the Windows Command Line

This wikiHow teaches you how to check what version of java you have installed on your Windows computer using Command Prompt. Click the Windows Start icon. It's the icon with Windows logo. By default, it's in the bottom-left corner of the...

Method 1 of 3:

Using Windows 10

  1. Picture 1 of How to Check Your Java Version in the Windows Command Line
    Click the Windows Start
    Picture 2 of How to Check Your Java Version in the Windows Command Line
    icon. It's the icon with Windows logo. By default, it's in the bottom-left corner of the taskbar. This opens the Start menu.
    1. You can also press the Win key to open the Start menu.
  2. Picture 3 of How to Check Your Java Version in the Windows Command Line
    Type cmd. This displays the Command Prompt icon at the top of the Start menu. As you type, a list of programs and search results appears in the Windows Start menu.
  3. Picture 4 of How to Check Your Java Version in the Windows Command Line
    Click the Command Prompt icon
    Picture 5 of How to Check Your Java Version in the Windows Command Line
    . It's the black square icon with a small white "C:" in the upper-right corner.
  4. Picture 6 of How to Check Your Java Version in the Windows Command Line
    Type java -version in the Command Prompt. This is the Command Prompt command to check which version of Java you are using. Type it in the Command Prompt window.
  5. Picture 7 of How to Check Your Java Version in the Windows Command Line
    Press Enter. This displays a readout of the current Java version that is installed on your computer in the Command Prompt. Make sure you include a space after "java".
    1. If it doesn't display any information or there is an error while running the command, you might not have Java installed on your computer. To download Java, go to https://www.java.com/en/ in a web browser and click Free Java Download. After you install Java, restart your computer.
    2. If you have Java, make sure you have the latest version of Java.
    3. To determine if your system is running a 32-bit or 64-bit version, read How to Check If Your PC is Running the 32-bit or 64-bit Version of Windows to determine which version of Windows you are running.
Method 2 of 3:

Using Windows 8

  1. Picture 8 of How to Check Your Java Version in the Windows Command Line
    Right-click the Windows Start
    Picture 9 of How to Check Your Java Version in the Windows Command Line
    icon. It's the icon with the Windows logo. By default, it's in the lower-left corner. Right-clicking this icon displays the System menu above the Start button.
  2. Picture 10 of How to Check Your Java Version in the Windows Command Line
    Click Run. It's the third option from the bottom of the System menu. This opens the "Run" program.
  3. Picture 11 of How to Check Your Java Version in the Windows Command Line
    Type cmd.exe next to "Open". Use the space next to "Open" in the Run program to type the command to open the Command Prompt.
  4. Picture 12 of How to Check Your Java Version in the Windows Command Line
    Click Ok. It's the first button at the bottom of the "Run" program. This opens the Command Prompt.[1]
  5. Picture 13 of How to Check Your Java Version in the Windows Command Line
    Type java -version in the Command Prompt. This is the Command Prompt command to check which version of Java you are using. Type it in the Command Prompt window.
  6. Picture 14 of How to Check Your Java Version in the Windows Command Line
    Press Enter. This displays a readout of the current Java version that is installed on your computer in the Command Prompt. Make sure you include a space after "java".
    1. If it doesn't display any information or there is an error while running the command, you might not have Java installed on your computer. To download Java, go to https://www.java.com/en/ in a web browser and click Free Java Download. After you install Java, restart your computer.
    2. If you have Java, make sure you have the latest version of Java and find out if your system is running a 32-bit or 64-bit version.
Method 3 of 3:

Using Windows 7, Vista, and XP

  1. Picture 15 of How to Check Your Java Version in the Windows Command Line
    Click the Windows Start icon. It's the icon with the Windows logo. By default, it's in the lower-left corner in the taskbar. This displays the Windows Start menu.
  2. Picture 16 of How to Check Your Java Version in the Windows Command Line
    Click All Programs. It's in the Windows Start menu. This displays a list of all programs installed on your computer.
  3. Picture 17 of How to Check Your Java Version in the Windows Command Line
    Click Accessories. This is a sub-folder in "All Programs" list. This displays a list of Windows pre-installed programs.
  4. Picture 18 of How to Check Your Java Version in the Windows Command Line
    Click Command Prompt. It's in the list of Accessories. This opens the Command Prompt.
  5. Picture 19 of How to Check Your Java Version in the Windows Command Line
    Type java -version in the Command Prompt. This is the Command Prompt command to check which version of Java you are using. Type it in the Command Prompt window.
  6. Picture 20 of How to Check Your Java Version in the Windows Command Line
    Press Enter. This displays a readout of the current Java version that is installed on your computer in the Command Prompt. Make sure you include a space after "java".
    1. If it doesn't display any information or there is an error while running the command, you might not have Java installed on your computer. To download Java, go to https://www.java.com/en/ in a web browser and click Free Java Download. After you install Java, restart your computer.
    2. If you have Java, make sure you have the latest version of Java.
Update 05 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile