Install multiple versions of Jdk,java-version under Windows system

Source: Internet
Author: User
  • Problem Description:
    • began to install the jdk8 later installed Jdk9, can be configured for the project different JDK, peaceful;
    • Today found that the software needs JDK8 environment, the results of my java-version is always jdk9.0.1;
  • Workaround: Make Java-version 1.8 .....
  • Specific implementation:
  • Open environment variable configuration: Configure path to the required JDK version;
  • For example: D:\JDK8\jdk1.8.0_144\bin;
  • For Java_home: In this test, you can either configure 1.8 or 1.9 or 2 with a semicolon interval. Simply delete, can also be used normally.
  • This thought to the above is OK, actually still can not change with the configuration in path, need to make the following changes: The machine is located in the C-drive Java.exe, Javaw.exe, javaws.exe three files can be deleted (the specific location I have not been found after the deletion, can be consulted: http:/ /blog.csdn.net/tooky_poom/article/details/60768458).
  • Note: After changing the path configuration, you should re-cmd the command to view the latest JDK version.
  • Note: The above results are based on win7,jdk1.8 and 1.9 tests.

Install multiple versions of Jdk,java-version under Windows system

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.