set java_home command line windows code example Example: change javahome cmd setx JAVA_HOME -m "Path"