If you have ever switched between a university project, a Minecraft modding tool and a work codebase on the same Windows machine, there is a good chance you have more than one Java on it. Most of the time nobody notices. Then a build fails with a strange class version error, or a security advisory lands and you need to know exactly what is installed. Here is a short checklist to get a clear picture.
1. Find out which java actually runs
Open Terminal and run:
java -version
Enter fullscreen mode
Exit fullscreen mode
The first line is the version Windows uses when anything calls plain java . The next line usually names the vendor (Oracle, Microsoft, Temurin, Zulu and so on). Write down both the major version and the vendor.
Remember the two numbering styles: 1.8.0_xxx is Java 8 in the old format, while 11.0.x , 17.0.x or 21.0.x lead with the major version.
2.…