Installation and configuration environment variable of the java jdk

First, what is JAVA, JDK, JRE, JVM

1, what java is?

Java is an object-oriented programming language, Java language has a powerful and easy to use two features. Java language as a static representative of object-oriented programming languages, object-oriented to achieve an excellent theory, it allows programmers to elegant way of thinking complex programming.
- more than from Baidu Encyclopedia

Face different operational scenarios, java divided, JAVA SE, JAVA EE, JAVA ME, whichJAVA SEAs the core of java

2. What is jdk?

JDK is the Java language software development kit, mainly for java applications on mobile devices, embedded devices. JDK java development is the core, which contains the JAVA runtime environment (JVM + Java system class library) and JAVA tools.
- more than from Baidu Encyclopedia

3. What jre that?

Java Runtime Environment (Java Runtime Environment, referred JRE) is a software developed by the Sun Microsystems, JRE allows a computer system to run a Java application (the Application Java)
- more than from Baidu Encyclopedia

Two, jdk installation

Download the jdk, click into
the installation process specific jdk, the next step can be custom installation path on their own, they Sauce

Three, jdk environment variable configuration

There are open jdk installation directory, the directory structure is as follows:
This is jdk directory structure
** Remember jdk directory path, which is very important, here is my path:D:\Program Files\Java\jdk1.8.0_201** I as an example,

Warning in front of multi-map

  1. Select "This Computer" right-click, click Properties
    1

  2. Go to Control Panel, click on the "Advanced System Settings"
    Here Insert Picture Description

  3. Go to Advanced System Settings, click the "Environment Variables"Here Insert Picture Description

  4. Into the environment variable, start configuring jdk environment variable in the "System Variables", click "New"Here Insert Picture Description

  5. After the pop-up window environment key, fill in the Variable Name box

    JAVA_HOME

    Fill in the value of the variable jdk installation directory, in my installation directory, for example

    D:\Program Files\Java\jdk1.8.0_201

    Figure: Here Insert Picture Description
    Click the "OK"

  6. In the "System Variables", find the "Path", click EditHere Insert Picture Description

  7. Click New, and write

    %JAVA_HOME%\bin

    Here Insert Picture Description
    Here Insert Picture Description
    After configuration, and click OK

  8. Click OK to continueHere Insert Picture Description

  9. Continue to identifyHere Insert Picture Description

  10. Click the "X", the end of theHere Insert Picture Description

Note 1: After jdk5 version, can no longer be individually configured CLASSPATH variable
Note 2: In the Path variable, you can not add% JAVA_HOME% \ jre \ bin

Fourth, verification

win + r, type "cmd"
input

java -version

Here Insert Picture Description
If the display is similar, only the configuration is complete,

Five related errors

Environmental variables configuration errors, mostly in the JAVA_HOME path of error, the variable value can be configured in "this computer" in the open, view the path is correct,Here Insert Picture Description

Six other

Cool white prostitute moment, given the crematorium, remember to praise point na

Guess you like

Origin www.cnblogs.com/nrcy/p/12571889.html