jdk环境变量自动设置工具 ECHO 请先修改java sdk安装目录 ECHO -------------------------------------------- pause cd C:\WINDOWS\system32\wbem c: wmic ENVIRONMENT create name="JAVA_HOME",username=" ",VariableValue="E:\Program Files\Java\jdk1.6.0_21"