win10 system solutions JDK1.8 and JDK1.7 switch failures

Scene: The win10 version of the JDK 1.7 system is installed, and the JDK version 1.8 is installed, you want to switch each other in a later use, but 1.8 has been switched to the 1.7 fails
 
first step: 
  Delete C: java.exe \ Windows under the \ System32 directory, javaw.exe, javaws.exe three documents,
  Because when using the version of the JDK installation program (JDK1.7 above), the installation program automatically copies after installation java.exe, javaw.exe, javaws.exe three executable files to the C: \ Windows \ System32 directory .
  If you do not yet successfully completed the first step in the implementation of the second step is switched to continue the JDK.
Step two:
  Enter the computer, in view in the "hidden items" tick, and then enter 
C: \ ProgramData \ Oracle \ Java, the Java file delete, and then delete the Path C: \ ProgramData \ Oracle \ Java \ javapath configuration.
 
third step:
  Cmd to open a new window, type: java -version to verify
 
the fourth step:
  Successful handover, simply modify the values ​​to JAVA_HOME when the future want to switch JDK environment

Guess you like

Origin www.cnblogs.com/yixinyili/p/11369488.html