windows how to set java_home from command line code example Example: how to echo java_home in windows cmd echo %JAVA_HOME%