Occasionally programs will recommend or require a specific version of Java to function.
The problem gets worse if you’ve installed multiple versions of Java.
How do you know which version you’re using?
Luckily, one command is all you need.
The discrepancy occurs because multiple versions of Java are installed simultaneously.
It doesn’t matter if you use Command Prompt or PowerShell.
Hit Windows+X to open thePower User Menu, then tap “i” to open up Terminal.
Enter
into the Terminal and hit Enter.
Your Java version will be displayed in theTerminaldirectly under your command.
In the screenshot above, our example PC has Java version 17.0.4.1 installed.
Remember, having multiple versions of Java installed concurrently isn’t a major problem.
It is actually pretty common.
You just need to be sure which version you’re actually using.