Java Development Environment Configuration (Windows chapter)

Source: Internet
Author: User

Window System installation Java

Download JDK

First we need to download the Java Development Kit jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html

Click the Download button, the current main new version, click to jump to this page

The key point of the license to download.

Download the required version, install it, and choose the installation location during the installation process. For example I installed in D:\Program Files (x86) \java\jdk1.8.0_131

Configuring Environment variables

1. After the installation is complete, right-click on the computer location, select Properties, click Enter

2. Select Advanced System Settings

3. Select Environment variables

4. Go to the following interface, I have this configuration is complete. The user variable is valid only for the current user and the system variable is valid under the current system.

Set 3 properties in "System variable", Java_home,path,classpath (case does not matter), if already exist then click "Edit", if there are other variables under the same variable name, use ";" Separate; Click "New" if it does not exist.

The variable setting parameters are as follows:

    • Variable name:java_home
    • Variable value:D:\Program Files (x86) \java\jdk1.8.0_131 //To be configured according to your actual path
    • Variable name:CLASSPATH
    • Variable value:.;         %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Remember, there's a "." in front.
    • Variable name:Path
    • Variable value:%java_home%\bin;%java_home%\jre\bin;

Choose between user variables or system variables based on individual needs (I personally use user variables)

java_home Settings

Path Settings

classpath Settings

test whether the JDK was installed successfully

1, "Start", "Run", type "cmd";

2. Test input: Java-version

Test input: Javac-version

The following information appears stating that the environment variable is configured successfully;

If you output this content, the configuration error, please carefully check the configuration variables

Java Development Environment Configuration (Windows chapter)

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.