Java install JDK WIN10

JDK stands for Java SE Development Kit

It can be found at the official website as long as Goole search, download the official entry of JDK8,11,12.

We click on the Java SE Development Kit 8 to download.

If you do a Google search, just click https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

We downloaded version is jdk-8u91-windows-x64.exe

The installation process by guiding the default installation, the middle of what options are changed.

After installation you need to configure the environment variable, which is the most important point.


To Windows10 to, for example, configure the environment variables as follows:

Press [Windows] key + E key, open Explorer, right-click this [computer] in the pop-up menu select [Property]

In the pop-up interface

Select Advanced system settings.

And then select Environment Variables.

Select the following [Environment Variables dialog [New] (W) ...]

[In the variable name (N)], type:JAVA_HOME

In the variable value [(V)] Enter: C: \ Program Files \ Java \ jdk1.8.0_91

Then click OK.

And then click [Environment Variables] dialog box, select the following [New (W) ...]

[In the variable name (N)], type:CLASSPATH

In the variable value [(V)] Input:;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar;% JAVA_HOME% \ jre \ lib \ rt.jar;

Then click OK.

Found in the existing environment variablePATH

Click [Edit (I) ...], in the pop-up [edit] Environment Variables dialog box choose select [New]

The new line will appear

Entry:%JAVA_HOME%\bin

再点击【上移(U)】将%JAVA_HOME%\bin移到最上面。

Finally, click OK.


JDK environment variable with three main configuration environment variable:

  • JAVA_HOME
  • CLASSPATH
  • PATH

Their values ​​are:

  • C: \ Program Files \ Java \ jdk1.8.0_91, namely JDK installation directory
  • .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\lib\rt.jar;
  • %JAVA_HOME%\bin

 配置过程步骤比较多,需要细心。

Guess you like

Origin www.cnblogs.com/lszw/p/11331634.html