JDK1.8 installation and configuration environment

First, download

Download Page Enter the official website of  jdk1.8 Download

1. In accordance with the red box indicates the first select [Accept License Agreement], installation protocol agreed;

2. Select the Windows x64 (ie, 64-bit operating system), click to download;

JDK download the corresponding information according to given system version, here to install jdk-8u171-windows-x64 Example.

Second, the installation

Set directory D: \ java (recommended to install the D drive)

Double-click the installer

Install jdk, the path to D: \ java \ jdk1.8.0_171

Next, and then will pop up to install jre, the path is jre1.8.0_171

Next, wait for the installation to complete.

Third, configure the environment variables

Right My Computer -> Properties

Click on Advanced System Settings

Click Environment Variables

New system variable, the variable name: JAVA_HOME, variable value: D: \ java \ jdk1.8.0_171 (fill in here the installation path of your choice)

New system variable, the variable name: CLASSPATH, variable values:;.% JAVA_HOME% \ lib; note that the value of this variable dot notation in English begin, end with a semicolon.

Configure the system environment variable Path
Double-click Path -> New -> Add "% JAVA_HOME% \ bin and% JAVA_HOME% \ jre \ bin"

Or a case, the final add the following string:;% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin

Note that before the first semicolon.

determine

Fourth, the test is successful installation and configuration

Open the "Command Prompt" (Run as administrator), enter javac and java -version, the output appears as shown below, then jdk installed successfully.

 

 

 

Guess you like

Origin blog.csdn.net/shine_my/article/details/91798465