Win10 installed jdk1.7 and jdk1.8

jdk1.7 already installed, but can not meet the demand, because many new features plug-ins, frames, etc. need jdk1.8 to use, and so want to install 1.8, but 1.7 is not ready to unload, consider installing multiple jdk.
download:
To download jdk1.8, go to the official website to download recommendations, require the oracle account, this can register for free.
Link: http: //www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
 
I choose 64, wait for the download is complete, install JDK.
installation:
The installation process is fool-installation, installation path to choose according to their habits.
 
Configuration environment variable:
Here we use three variables
 
Add CLASSPATH, content is:;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar
 
Path variable settings:;.% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin; put first.
 
Switching:
Now is the% JAVA8_HOME%:
 
If you need to switch only need to change the JAVA_HOME variable in 8 changed to 7 on the line.
 
 
Of presentation, thank you!
---------------------
Author: Fun program
Source: CSDN
Original: https: //blog.csdn.net/qq_35070001/article/details/81181365
copyright notice : This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/xichji/p/11016290.html
Recommended