004、Windows idea环境自动一把梭 2020-09-28 字数统计: 268字 | 阅读时长≈ 1分 1234567891011121314151617181920212223242526kali@kali:~$ curl http://f.itgrub.com/idea.bat@echo offecho "====================================================="echo " Jdk8 Windows "echo " www.itgrub.com "echo "====================================================="setx "JAVA_HOME" "C:\Program Files\Java\jdk1.8.0_202" -M setx "CLASSPATH" ".;%%JAVA_HOME%%\lib\dt.jar;%%JAVA_HOME%%\lib\tools.jar;" -M wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%%JAVA_HOME%%\bin;%%JAVA_HOME%%\jre\bin;%path%"setx path "%path%"bitsadmin /transfer jdk8 http://repo.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-windows-x64.exe c:\jdk8.exestart c:\jdk8.exe /s && echo "Success"echo "安装7z完成"bitsadmin /transfer maven https://repo.huaweicloud.com/apache/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip c:\maven.zip"C:\Program Files\7-Zip\7zG.exe" x c:\maven.zip -oC:\setx "MAVEN_HOME" "C:\apache-maven-3.8.6" -M wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%%MAVEN_HOME%%\bin;%path%"setx path "%path%"mvn -vmvn -versiondel /F /S /Q C:\apache-maven-3.8.6\conf\settings.xmlbitsadmin /transfer maven http://www.itgrub.com/settings.xml C:\apache-maven-3.8.6\conf\settings.xmlbitsadmin /transfer maven https://download.jetbrains.com.cn/idea/ideaIU-2022.3.exe c:\ideaIU-2022.3.exestart c:\ideaIU-2022.3.exepausekali@kali:~$ Windows idea环境自动一把梭 Windows