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 Sat Feb 01 2025 00:00:00 GMT+0000 (Coordinated Universal Time)