Download
Download page: http://www.oracle.com/technetwork/java/javase/downloads/index.html
The installation package of the JDK comes with a JRE, which, during installation, determines whether the JRE needs to be installed depending on the current system's actual situation, so you only need to download the JDK's installation package.
Installation
The installation process is nothing to say.
Configuration One: New system environment variable Java_home
| Variable name |
Java_home |
Note: Variable names must match exactly |
| Variable Value |
C:\Program files\java\jdk1.8.0_25 |
Note: Fill in the JDK installation path on the current system |
If the installer is not configured automatically, you can manually add it, less than 1 minutes:
Configuration two: Modifying an existing system environment variable path
| Variable name |
Path |
Note: This environment variable generally does not require a new |
| Variable Value |
%java_home%\bin |
Note: Append the current value after the line |
Other configurations
Some of the information on the web in the JDK configuration, but also mention the environment variables such as classpath and%java_home%\jre\bin variables such as value.
Well, based on my experience with Android studio and Eclipse, it's enough to complete configuration one and configure two. But it's more harmless, you know.
Check
To check if the JDK is installed successfully, you can enter "Java–version" in the Command line window and if you see the information shown, the installation is successful:
Download, install, and configure the JDK