Coexistence of Jdk7 and JDK8 under win environment

Source: Internet
Author: User
1.JDK installation Package

The installation steps are slightly

2.JDK and other configuration file modification

When installing JDK1.8 (this machine first installs the jdk1.7 again installs the jdk1.8), will Java.exe, Javaw.exe, javaws.exe three files copy to the C:\Windows\System32, This directory takes precedence over the environment variables set by Java_home in the WIN environment variable. So how we configure in Java_home will show java8 information.
Solution:
1. Delete the Java.exe in the C:\Windows\System32 directory
2. At the same time we automatically configure the C:\ProgramData\Oracle\Java\javapath on the path of our environment variable; we need to erase it.

Configuration of the 3.java_home


This article uses the JDK7

And then we go into the path interface of our system variables.

OK our JDK run environment is also want to match if need to use jdk8 we need to refer to our Java_home jdk8 and path of the JRE selection JDK8 operating environment

4. To make it easier for readers to understand, paste the folder of my JDK installation below

Coexistence of Jdk7 and JDK8 under win environment

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.