How to install JDK8? win10 install and configure JDK8 environment variables

  
The Java Development Kit (JDK) is a free software development kit (SDK) released by Sun Microsystems for Java developers. Now belongs to Oracle company. You can also download OpenJDK, which belongs to the GPL.

now win10 came out, JDK8 also came out, more and more small partners want to install JDk8 on win10, but many small partners are still not familiar with the installation and configuration of JDK8, in order to solve the installation and configuration problems, this article details How to install JDK8 on win10, it is convenient for small partners to quickly learn to install and configure JDK.

Tools/Materials

windows10

jdk-8u51-windows-x64.exe

Methods/Steps

1, First of all, Click to enter the JDK official website.
2, after entering the official website, agree to the agreement, and download the corresponding version of the JDK, 64-bit computer download X64, 32-bit computer to download i586.


3. Click Download and download to the download file of your choice.

4. In the download file, double-click the downloaded executable file jdk-8u51-windows-x64.exe, click ““OK” in the pop-up interface, and install “> program” In the interface, click “Next”.

5, choose the location of the installation, the default is in the C drive, of course, to prevent the C drive is too large, the startup speed is slow, you can put it on other disks, I am here on the D In the disk (D:\\Java\\jdk1.8.0_51). Then click Next.


6. After the JDK is installed, the JRE will be installed. It is recommended that the JRE installation directory and the JDK be in a folder, so change the directory to D:\\Java\\jre1 .8.0_51. You will see that jdk and jre are both under the D disk Java folder

7, click “Next”, after waiting for the installation to be installed, you will be prompted "Installed successfully", then Click to close.


8. Configure the JDK environment variable, open “Control Panel>-->“System & Security>-->“System”, click on the left "Advanced System Settings", pop-up "System Properties" panel, click on the "Environment Variables" in the panel.

9, at this time you can set the user's environment variables, you can also set the system environment variables, if you set the user's environment variables, then this user can only use, other users can not use. If you set the system's environment variables, it is available to every user of this computer. Since I have only one user here, I set the user environment variable.

In the user environment variable, create a new variable JAVA_HOME, set the variable value D:\\Java\\jdk1.8.0_51

10, create a new PATH, set the variable value %JAVA_HOME%\\bin; %JAVA_HOME%\\jre\\bin

11, create a new CLASSPATH, set the variable value.;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar Note the previous one. Current directory. Then click the “OK” button.

12. Test whether the environment variable is set successfully.

Enter cmd in win10's own search box, open, enter javac and java in the command line, if there is a lot of content, it means the environment variable configuration is successful.


Notes

JDK and JRE are best installed in the same directory

The above is the environment variable graphic tutorial for installing and configuring JDK8 for win10. The operation process is not very difficult, as long as you follow the steps, you can successfully install and configure JDK8, I hope to help everyone!

Copyright © Windows knowledge All Rights Reserved