Win10 JDK version switch, win10jdk version Switch
1Install jdk
Use your computer as an example: jdk 1.6 and jdk 1.8
2, Modify the Environment Variable-JAVA_HOME
Local Machine:
1.6: D: \ Java \ jdk1.6.0 _ 45
1.8: D: \ Java \ jdk1.8.0 _ 152
3, Modify the Java Control Panel version to enable
[Control Panel]-[Program]-[Java Control Panel]
4, Modify the Registry
Run regedit
Choose HKEY_LOCAL_MACHINE> SOFTWARE> Custom oft]
(1) modify the CurrentVersion of Java Development Kit. The default value is the version you want to switch to (for example, 1.8)
(2) modify the CurrentVersion of Java Runtime Environment to the version (for example, 1.8) to be switched)
5. Modify the exe files in the two folders.
Copy java.exeand javaw.exein the BIND directory of JDK
C: \ Windows \ System32
And
C: \ ProgramData \ Oracle \ Java \ javapath (this is a hidden path)
6Check
Run cmd and enter java-version
References
(1) http://www.cnblogs.com/yanzige/p/5377332.html
(2) http://blog.csdn.net/iamcaochong/article/details/56008545
(3) https://www.cnblogs.com/ll409546297/p/6593173.html