Help small white, JDK installation and environment variable configuration (Win 10 system)

Source: Internet
Author: User

To learn Java, you must first install the JDK (Java Development Kit Java SDK) and then configure the environment variables to start using Java.

One, install the JDK

1, you can choose to download the latest version of the JDK on the website, the address is as follows:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

After you click on the link, you will see the following interface:

2. Click the middle arrow point, the following interface will appear, before selecting the version and download you need to receive the protocol first, the specific interface as shown:

3, according to your computer system to make the corresponding version to choose, to download

4, after the installation package download is complete, open the installation package on the computer to install, then do not need to make any changes, continue to click Next, and finally click Close

This completes the entire JDK installation process .

Second, configure environment variables

1, right-click My Computer-Properties-Advanced system settings you will see the following interface:

2. Click on the environment variable and start the configuration of the environment variable:
Click the New button under the system variable name Java_home (which represents your JDK installation path), and the variable value corresponds to the installation path of your JDK.

* If you don't know where your JDK's installation path is, look for the installation path as follows:

Open File Explorer, locate the JDK file under the Java file, and copy the path to the variable name java_home value

Configure the Java_home variable as follows:

Click OK.

3, continue to create a new CLASSPATH variable inside the system variable with the value of the variable as shown:

Variable name: CLASSPATH

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (copy and paste directly, don't forget the "." in the front.) And the back of the ";")

As follows:

Click "OK".

4, in your system variables to find a variable name is the path of the variable, you need to add a section of the value of the following code:

%java_home%\bin;

%java_home%\jre\bin;

Create a new 2 and enter the above code (don't forget the semicolon at the end)

As follows:

Click "OK".

3 environment variables are already configured, so you can close other windows.

Third, verify

How to verify that the environment variables you have configured are correct, we can view them from the command line

1,windows+r the key, enter CMD, and enter the command line interface as follows:

2. Enter the Java-version command, which can appear as a hint, you can see the JDK version you installed:

3, the input Java command will appear as shown in the results:

4, enter the Javac command can appear the following prompt:

If all of the above 3 items are not error-free, congratulations, you have successfully configured the environment variables, you can start using the JDK!

Help small white, JDK installation and environment variable configuration (Win 10 system)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.