1. Problem: Problems with two versions of JDK (this is version 1.7 and 1.8), because Eclipse requires 1.8 version, but my Windows default version is 1.7, resulting in the inability to start eclipse
2, because it is often used in the development of 1.7 version, so for the 1.7 version of the strong dependence
3. First install the 1.7 and 1.8 versions of the JDK: normal installation!
1) Not available for official download: JDK download
2) My path is:
4. Configure Environment variables
5. Strange things happen, I use CMD to monitor the JDK version:
6, in order to better support eclipse, so Windows default JDK must be more than 1.8
7. Modification method
1) Enter the C:\Windows\System32 directory
2) Delete Java.exe,javaw.exe,javaws.exe
3) Copy the Java.exe,javaw.exe,javaws.exe from the 1.8 installation directory bin to C:\Windows\System32 and C:\ProgramData\Oracle\Java\ Javapath (This is a hidden path)
4) Modify the registration form
Run regedit
Find Hkey_local_machine\software\javasoft
The CurrentVersion default value for modifying Java Development Kit is 1.8
The default version of CurrentVersion to modify Java Runtime environment is 1.8
8, save the test again
This will be a success!
Troubleshooting Windows to JDK default version switching issues