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:
** 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
-
Select "This Computer" right-click, click Properties
-
Go to Control Panel, click on the "Advanced System Settings"
-
Go to Advanced System Settings, click the "Environment Variables"
-
Into the environment variable, start configuring jdk environment variable in the "System Variables", click "New"
-
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:
Click the "OK" -
In the "System Variables", find the "Path", click Edit
-
Click New, and write
%JAVA_HOME%\bin
After configuration, and click OK -
Click OK to continue
-
Continue to identify
-
Click the "X", the end of the
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
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,
Six other
Cool white prostitute moment, given the crematorium, remember to praise point na