How to Check Which Version(s) of Java are Installed or Running
Run jcmd directly from the [$JDK]/bin/ directory to determine all
supported JDKs currently running on your system.
Alternatively, run java -version from the Java directory to check the
installed version (whether it is running or not).
jcmd Documentation
To learn more about jcmd see the documentation for your version:
Last reviewed on 2025-02-01