Windows builds the Java development environment

Source: Internet
Author: User

I. About and how:

1. Baidu search jdk, access to download the official website, the specific URL is as follows:

Click Me!!!

2. According to the different system of your computer to choose the corresponding download, of course first you have to click Accept License Agreement agree to this!

3. When the download is complete, click Install

Two. About the installation process:

1. When selecting the installation path, note that the path cannot contain Chinese names

Here we can select the directory you want to install with "change" and click Next.   Here we have only installed the JDK, the installation Wizard will check that you do not install the JRE, and then prompt you to install the JRE, it is recommended that the best installed. 2. Install the JRE Select a folder you like, note that this folder is not the JDK installation directory, otherwise it will overwrite the directory of the JDK directories under the directory of the JDK we choose to install to the same level as the same as the Java, click Next to complete the installation, and then prompt the successful installation

3. If you want to verify that you are installed correctly, press WINDOW+R or click Run input cmd, open the Command Line window, enter java-version in the interface, if the following text appears to indicate that the download is correct

Three. About Environment configuration

1. My Computer → right-click → properties → advanced system settings → environment variables Create a new system variable named "Java_home" with the variable value "C:\Program files\java\jdk1.8.0_161" (The JDK's installation directory, Modified according to the directory installed by the individual)

2. Create a new variable named "CLASSPATH" with the variable value ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; " System variables, note that the previous dot and semicolon are all

3. Open the "Path" System variable, click New, add "%java_home%\bin" and "%java_home%\jre\bin" two system variables. Path allows the system to identify Java commands under any path four. Verification: After clicking Save, press Window+r or click Run input cmd, open the Command Line window and enter both Java and Javac to run correctly, which means that Java is installed correctly. If a prompt such as "Javac is not an internal or external command" appears, check again to see if your environment variable is configured correctly, or if the JDK and JRE installation directories are duplicated, and if you repeat, you can choose to run the downloaded JDK installer again to reinstall. Reprinted from Https://www.cnblogs.com/shirley-0021/p/8510051.html

Windows builds the Java development environment

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.