Eclipse and JDK installation and environment configuration tutorial

Note: This article covers the JDK installation, configuration, and Java environment Java development tools Eclipse installation process, hope to help you learn and understand, install the package do not go online to find the official download the latest version I have to help you network disk pack Yes , it also includes the Chinese and English version of the Java API. You can save the download directly.  Eclipse is the green version , which can be used after decompression . In addition, these are attached to the official website link. Others can be downloaded if necessary.

JDK:

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

Eclipse:https://www.eclipse.org/downloads/

 

JDK installation and configuration of environment variables

  1. JDK installation

Let ’s first understand what a JDK is. The JDK [Java Development Kit] is the core of the entire Java development. It contains the Java runtime environment (JVM + Java system class library) and Java tools. It integrates a lot of tools used to help developers to develop Java, including compilation, debugging, running and other commands!

 

  • Preparation tool: Link: https://pan.baidu.com/s/1pLIDjib Password: c6fr

       Next, start the installation, similar to the QQ installation on the computer, it is very easy, just press Enter all the way, but you must pay attention to the path where you install jdk, which is used when configuring environment variables later!

 

2. Environment variable configuration

       First open the interface for environment configuration (Computer → Properties → Advanced System Settings → Advanced → Environment Variables) and start the configuration.

The first step: system variables → new JAVA_HOME variable, the variable value is the directory of the jdk you installed. After setting, the program will automatically search under the root directory when JDK is needed, for example, mine is: D: \ Program Files \ JAVA \ jdk1 .8.0_151

The second step: system variables → new CLASSPATH variable, this is the execution path of the class, pointing to the lib directory, so that you can find and execute the class in the class library, the variable value is:.;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar (note the first point), as shown in the figure:

 

The third step; system variables → find Path variable (this is the absolute path of lib, used to find Java executable commands), and then enter% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin at the end of the variable value;

(Note that there is no; at the end of the original Path variable value; if not, enter it first; then enter the code above) as shown in the figure;

 

After configuration, the next inspection

The first step: win + R key, then enter cmd, and click OK to enter the command line window

 

 

The second step: enter Java, Javac and Java -version respectively to verify, see if they all run successfully, if the operation is successful, it will be OK. As shown in the figure:

This is the end of jdk installation and Java environment configuration.

 

Eclipse installation

 

  1. Tool preparation: Link: https://pan.baidu.com/s/1nuQ84lV Password: qhn2

   2. Install; green version, you can start after one-click decompression.

The Chinese and English versions of the Java API are attached: Link: https://pan.baidu.com/s/1nvN1adz Password: 0bgk

 

Summary: The whole process is very simple, but each path must be clear during the installation process . For example, the JDK path should be used later. Secondly, the configuration of environment variables is simple but particularly error-prone, and the error is very worrying. It must be slow, slow, slow, slow, slow , important things I will tell you five times, and slowly understand why those variable values ​​are set that way. Even if you do n’t understand the variable value, you do n’t need to remember it.  Google  will solve it when you need it . It is recommended that those environment configurations know the principle after the configuration is completed. For example, you need to go to Google when you need to configure after reinstalling the system. To touch, those symbols and letters, no matter where they are mistaken, will lead to an error. Don't give yourself unnecessary pits in these places. Focus on the later learning of Java.

 

At this end, Java learners can officially start the road of Java development ......,

 

PS : This article is original, welcome to exchange learning together and make progress together! If in doubt, you can follow my WeChat public account (Banxia Minlan), communicate with me in the background,

       There is no way in life, every step counts!

Released eight original articles · won praise 9 · views 6205

Guess you like

Origin blog.csdn.net/DolphKong/article/details/81085534
Recommended