How to Check the Installed Java Version - MegaMek/megamek GitHub Wiki

How to Check the Installed Java Version

Checking Java Version on Windows

  1. Open Command Prompt:

    • Press Windows Key + R to open the Run dialog.
    • Type cmd and press Enter.
  2. Check Java Version:

    • In the Command Prompt window, type java -version and press Enter.
    • The version of Java installed will be displayed.

image

Checking Java Version on macOS

  1. Open Terminal:

    • Press Command + Space to open Spotlight Search.
    • Type Terminal and press Enter.
  2. Check Java Version:

    • In the Terminal window, type java -version and press Enter.
    • The version of Java installed will be displayed.

Checking Java Version on Linux

  1. Open Terminal:

    • Press Ctrl + Alt + T to open the Terminal.
  2. Check Java Version:

    • In the Terminal window, type java -version and press Enter.
    • The version of Java installed will be displayed.