Troubleshooting Windows to JDK default version switching issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.