Setting up a Java development environment in Windows environment (i): JDK Installation and configuration

Source: Internet
Author: User

First, the resources download

Official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html

I installed is jdk1.8, Baidu Cloud resources: Link: https://pan.baidu.com/s/1s674_5DjnsUO1A0_JGCLpg Password: vx2i

Second, install the JDK, note the JRE installation

The installation results are as follows:

Third, configure environment variables

1. Locate the environment variable configuration location

Right click on My Computer "properties" and follow the steps below

2. Modify Environment variables

1. New JAVA_HOME environment variable

2, new CLASSPATH environment variable, note the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar (all the same, do not change, direct copy, note the front dot and semicolon)

3. Modify the environment variable path

Double-click the environment variable path to create a new two variable in the popup box, as follows

%java_home%\bin

%java_home%\jre\bin

Note: This is in the WIN10 system environment, in the Win7 system This step is different, the Win7 system is directly in front of the path with the following variables

%java_home%\bin;%java_home%\jre\bin;

4. Last note Save all environment variable settings

Third, test the installation configuration results

Command line: java-version

The installation configuration is successful with the following interface type

Setting up a Java development environment in Windows environment (i): JDK Installation and configuration

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.