Configuring the Java Development environment

Source: Internet
Author: User

Window System install Java download JDK

First we need to download the Java SDK jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the download button below:

In the download page you need to choose to accept the license and choose the corresponding version according to your own system, this article takes the Window 64-bit system as an example:

Select Accept License First, then select Win64

After downloading the JDK installation according to the prompts, as well as installing the JDK will also install the JRE, installed on it.

(But I did not install the JRE after installing the JDK, because the JDK already contains the JRE, there is no need to install one.) Of course, it's not too much of an impact to continue to install one.

Install the JDK, the installation process can customize the installation directory, such as information, such as we choose the installation directory C:\Java\jdk1.8.0_144.

Configuring Environment variables

1. After the installation is complete, right click on "My Computer", click "Properties", select "Advanced System Settings";

2. Select the "Advanced" tab and click on "Environment variables";

The screen will then appear as shown:

Set 3 properties in "System variable", Java_home,path,class_path (case does not matter), if already exist then click "Edit", not exist then click "New".

The variable setting parameters are as follows:

    • Variable name:java_home
    • Variable value:C:\Java\jdk1.8.0_144 //To be configured according to its actual path
    • Variable name:class_path
    • Variable value:.;         %java_home%\lib; Remember, there's a "." in front.
    • Variable name:Path
    • Variable value:;%java_home%\bin;
Java_home settings

CLASSPATH settings

Path settings

If your computer is a WIN10 system, this interface appears when you edit the path, click New, and do not need a semicolon in front of it.

If this is not the interface, then the value of the variable is followed by the ";%java_home%\bin;"

This is the Java environment configuration, after the configuration is complete, you can start Eclipse to write code, it will automatically complete the configuration of the Java environment.

Note:   If you use more than 1.5 versions of the JDK, you can compile and run the Java program normally without setting the CLASSPATH environment variable.

Test whether the JDK was installed successfully

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

2, type the command: java-version,java,javac Several commands, the following information appears, indicating that the environment variable configuration is successful;

In this context, the configuration of the Java development environment is complete.

Configuring 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.