切换到jdk1.7
1.jre
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.7"
2.jdk
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.7"
3. 删除C:\\WINDOWS\system32 下java.exe javaw.exe javaws.exe
复制JAVA_HOME\jdk1.7\bin中java.exe javaw.exe javaws.exe 到C::WINDOWS\system32下
4.更改JAVA_HOME环境变量
5.验证 java -version
1.jre
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.7"
2.jdk
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.7"
3. 删除C:\\WINDOWS\system32 下java.exe javaw.exe javaws.exe
复制JAVA_HOME\jdk1.7\bin中java.exe javaw.exe javaws.exe 到C::WINDOWS\system32下
4.更改JAVA_HOME环境变量
5.验证 java -version