Java (JDK Multi-version switching)--windows platform

Source: Internet
Author: User

0. Background

It is often necessary to use different versions of Java in different applications and to switch between different java_home.

1. Methods

Step 1. Installing different versions of the JDK (JRE) is best installed in a Java directory branch. For example:

Step 2. Set the environment variable java_home. For example:

Step 3. Set path to the Java directory

Now that the Java version is 1.7, if you want to set to 1.8, you only need to set java_home in Step2 to a directory that points to jdk1.8.

Java (JDK Multi-version switching)--windows platform

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.