[Java series] java Development Environment establishment, java series Development Establishment

Source: Internet
Author: User

[Java series] java Development Environment establishment, java series Development Establishment

Description

This article describes how to build a java Development Environment Based on windows 10, including:

(1) Preparation of installation Materials

(2) Installation Process

(3) test whether the installation is successful

(4) Hello Word test

1. installation material preparation

Before building a java development environment, you must prepare JDK and Eclipse.

1.1 JDK

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

 

1.2 Eclipse

: Http://www.eclipse.org/

 

2. Installation Process

Jdk installation (keep in mind the installation path, which is required during environment variable configuration) and ecs0se are all silly one-click installation. Here I will skip this step and explain the configuration of environment variables based on windows 10.

Configure three environment variables: HOME, CLASSPATH, and PATH.

 

Add JAVA_HOME variable

Jdk installation path: "C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 144"

JAVA_PATH variable configuration

If the PATH variable exists, add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;" in the header. If the PATH variable does not exist, create the PATH variable, add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin ;"

 

JAVA_CLASSPATH variable configuration (if JDK 1.5 or later is used, you can compile and run Java programs without setting the CLASSPATH environment variable .)

Add the JAVA_CLASSPATH variable value ".; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar ;"

 

3. test whether the installation is successful.

 

WIN + R, Enter cmd

Type the following command:Java-version,Java,JavacThe following information is displayed, indicating that the environment variable is successfully configured;

Enter java-version to test whether jdk is successfully installed)

Enter java

Enter javac (test whether the environment variable is configured successfully)

 

4 Hello Word test

 

.

5. Copyright Zone

 

 

  • Thank you for your reading. If you have any shortcomings, please kindly advise and learn and make progress together.
  • Blog website: http://www.cnblogs.com/wangjiming /.
  • A small number of articles are integrated by reading, referencing, referencing, copying, copying, and pasting. Most of them are original articles.
  • If you like, please recommend it; if you have new ideas, welcome to raise, mailbox: 2016177728@qq.com.
  • This blog can be reposted, but it must be a famous blog source.

 

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.