Win10 JDK version switch, win10jdk version Switch

Source: Internet
Author: User

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

 

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.