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