Graphical process for installing Java SE Development Kit (JDK) and environment variable installation and configuration under win10 system

  

A few days ago, a classmate asked me how to configure the Java SE environment variable. At that time, because I was busy, I told him that when I was not busy, I would give you a tutorial. He readily agreed, but a few The days passed, Xiao Bian was still busy, and did not take the time to write a tutorial, so this classmate found me saying, "Say me to write a tutorial for me, I have not written for a few days, never give you again." Played & rdquo;, to be honest, I really feel sorry for him, since I promised people to do it, so today this small series specifically took the time to share with you to install the Java SE Development Kit (JDK) under the win10 system. Tutorial with environment variable configuration!

This article takes win10 system and the latest Java SE Development Kit 8 as an example for everyone to explain, win7, win8 system tutorial is similar, but it is not recommended to install and configure under winxp JDK8.

This tutorial is compiled by the computer knowledge learning network. It is absolutely successful and effective!

Java SE Development Kit 8 official download address

32 bit: http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-windows-i586.exe

64-bit: http://download.oracle.com/otn-pub /java/jdk/8u102-b14/jdk-8u102-windows-x64.exe

Please download 32-bit/64-bit according to your own system. If you are not sure, you can download 32-bit installation. .

Java SE Development Kit 8 installation process under win10 system

After downloading, double-click to install, as shown below:

Direct“Next”, as follows Figure:

To avoid this step, in order to avoid unnecessary trouble, please keep the default installation, especially the installation path, do not change, directly <; next & rdquo; can, of course, master Please feel free to.

The next step is the jre installation interface, as shown below:

The same, if not necessary, please keep the default installation directory, directly <; next & rdquo;,

So far, JDK 8 is installed, just click “ Close & rdquo;

Java SE Development Kit 8 environment variable configuration tutorial under win10 system

Right-click win10 start menu, select “system”,

click“system”, As shown below,

find the "advanced system settings" in the upper left corner, click on it to open the "system properties" interface,

In this interface, we select “senior&rdquo ; tab, then select the following "environment variable", click into it, as shown below:

This way, we open the "environment variable" configuration interface, the specific configuration process is as follows: Br>

a, we first create a JAVA_HOME variable name in the environment variable, as shown below:

variable name fill in JAVA_HOME, variable value fill in the JDK installation path, such as the small installation directory is C:\\Program Files\\Java\\jdk1.8.0_102, fill out and click “OK”.

b, next to the classmate's steps to create a new CLASSPATH variable name, as shown below:

variable name CLASSPATH, variable value fill the following line:

.; %JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar;

To avoid errors and unnecessary troubles, please copy and paste directly, and then click OK.

c, then find the Path variable in the system variable, the Path variable does not need to be newly created, the system originally has, we only need to find it point & ldquo; edit & rdquo;, as shown below:

After editing, add the following content to the beginning of the original content in the variable value:

%JAVA_HOME%\\bin;%JAVA_HOME%\\jre\\bin;

Still, In order to avoid mistakes, please copy and paste directly, click “&” and “OK”.

Where to install the Java SE Development Kit (JDK) and environment variable configuration tutorial under the whole win10 system, we can test whether our environment variables are configured successfully through a piece of code.
Java Code copy content to clipboard public class Test{

  • public static void main(String args[])
    {
  • System.out.println("This is a JDK test program.");
    }
  • }

    Copy this code into Notepad and save it as Test.java.

    Then open the command prompt, pay special attention to, due to win10, win8 system permissions, open the command prompt, by right-clicking on the win10 system's start menu, select “ command prompt (administrator) ) & rdquo; Open, do not enter cmd directly in the run to open the command prompt, or it will appear "javac is not an internal or external command" error.

    ok, we now open the command prompt (administrator), enter the directory where Test.java is located, and the small version is placed in the root directory c:\\ of the c drive, then you can directly enter it in the command prompt. :

    cd /dc:\\

    When you come in, type javac Test.java

    and continue typing java Test

    If this is returned on the screen a JDKtest program. It means that the environment variable configuration is successful, as shown in the following figure:
    The above is the installation and configuration process of installing the Java SE Development Kit (JDK) and environment variables under the win10 system introduced by Xiaobian. I hope to help everyone, if you have any questions, please leave a message, Xiaobian will reply to you in time. Thank you very much for your support of this website!

  • Copyright © Windows knowledge All Rights Reserved