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?

Hit Windows+X to open the Power User Menu, then tap i to open the Windows Terminal.

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.

The output of the command "java -version." Java Runtime Environment (Build 17.0.4.1).

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.