How to Check the Installed Java Version - MegaMek/megamek GitHub Wiki
How to Check the Installed Java Version
Checking Java Version on Windows
-
Open Command Prompt:
- Press
Windows Key + Rto open the Run dialog. - Type
cmdand pressEnter.
- Press
-
Check Java Version:
- In the Command Prompt window, type
java -versionand pressEnter. - The version of Java installed will be displayed.
- In the Command Prompt window, type
Checking Java Version on macOS
-
Open Terminal:
- Press
Command + Spaceto open Spotlight Search. - Type
Terminaland pressEnter.
- Press
-
Check Java Version:
- In the Terminal window, type
java -versionand pressEnter. - The version of Java installed will be displayed.
- In the Terminal window, type
Checking Java Version on Linux
-
Open Terminal:
- Press
Ctrl + Alt + Tto open the Terminal.
- Press
-
Check Java Version:
- In the Terminal window, type
java -versionand pressEnter. - The version of Java installed will be displayed.
- In the Terminal window, type