how to check java_home is set or not in windows using cmd code example Example: how to echo java_home in windows cmd echo %JAVA_HOME%