Situatie
There are plenty of ways to determine what version of Java you have installed, whether you’re using Windows 11 or Windows 10. For example, you can usually enter “About Java” in the Start Menu search and click the result to get a Java version. But that doesn’t always display the version your system will actually try to use if you run a JAR file.
Solutie
Pasi de urmat
The best way to determine which version of Java your PC is using is via the Terminal. It doesn’t matter if you use Command Prompt or PowerShell. Hit Windows+X to open the Power User Menu, then tap “i” to open up Terminal. Alternatively, you can click the Start button and enter “Terminal” in the search bar.
Enter java -version
into the Terminal and hit Enter.
Your Java version will be displayed in the Terminal directly under your command. In the screenshot above, our example PC has Java version 17.0.4.1 installed.
Leave A Comment?