echo %Path% SETX /M JAVA_HOME "C:\Program Files\Java\jdk1.8.0_202" SETX /M Path "C:\Program Files\Java\jdk1.8.0_202\bin;%Path%" pause