I want to check what version of Java is installed on my PC before installing the latest Java update. How can I do this?
4 Answers
You can check your version of Java with any of the following methods.
Java Control Panel (Windows)
- Open the Start Menu and select Control Panel.
- From the Control Panel, select Programs -> Java to open the Java Control Panel.
- Select About to view your current version of Java.
Command Line (Windows)
- Press ⊞ Win+R and type cmd to open the Command Prompt.
- Type
java -versionand press Enter
Control Panel (Windows)
Note: This method may give inaccurate results if Java's PATH has not been updated.
- Open the Start Menu and select Control Panel.
- From the Control Panel, select Programs -> Programs and Features.
- Scroll down the list of programs until you find the most recently installed version of Java
Terminal (MacOS)
- In the Finder, search for Terminal and launch Terminal.app
- Type
java -versionand press Enter
Sources
2The methods below will help you to check the Java version in Linux:
ps -ef|grep -i JAVAjava -versionwhich java
In windows open command prompt using cmd
Then, type the command java -version
Then, click enter. You will see your java version
1Checking Java version on Windows PowerShell, simply use the command:
java -versionBe careful there is only one dash in the command to be run.