Java foundation of JDK 8 download, install and configure the environment variables

Tip: watch friends can look foreword, want to see the installation guide friends skip the preface.

1 Introduction

In fact, two years ago, my computer has been installed over the JDK, version Java 10. But learning the source code with the following scene, equals method String source of my own view of this is achieved (and most blog online is not the same).
Here Insert Picture Description
After Lammonpeter pointing big brother, I decided to reinstall the JDK. JDK version will replace the current learning and enterprise application development mainstream version of JDK 8. After reloading, my source also grow with you as friends ~ (ready to flex its muscles)
Here Insert Picture Description

2. JDK download

About this download JDK 8, although the official website to download now need to register, personally recommend the official website . No trouble operational processes, and once and for all. This time you take the time to find resources elsewhere, may be the same next time but also a waste of time, it would be better this time to sign up for an account -

Download Link: official website portal
Here Insert Picture Description

3. JDK installation

In fact, the installation process is a fool, and if you do not need to change the installation path, click 'Next' to complete the installation . In fact, I personally recommend installed in the default path, because when I started looking for unloading methods, found that many small partners are in the process of unloading encounter problems.

The problem is partly due to the download path (also possible to make the old version) because I behave previously installed, uninstall process is also very smooth. Ado, here is our installation steps:

  • First, open the directory where the jdk download, double click to open, and then all the way to the next step.
    Here Insert Picture Description

  • Here, you can choose JDK installation. In fact, down JDK installation is not large, it is installed by default in the C drive is no big problem.
    Here Insert Picture Description

  • Next, the JRE path is stored, it is preferably placed in the same directory and JDK.
    Here Insert Picture Description

  • Wait for the Java installation.
    Here Insert Picture Description

  • The installation is complete, click "Close" button, you can configure the environment variables.
    Here Insert Picture Description

4. Configure Environment Variables

  • Properties of the computer, the operation to press the FIG. Note that the variable name JAVA_HOME, the variable value is the JDK installation path, I am here I is the default path:C:\Program Files\Java\jdk1.8.0_241
    Here Insert Picture Description
  • If you direct-configured Java environment variables, you can be put in those Path Java configure all deleted, added, as long as the last in the Path: ;%JAVA_HOME%\bin;(win10 player automatically ignore semicolons)
    Here Insert Picture Description

5. Test the Java environment

When you have completed all the operations of the appeal, you theoretically have completed JDK installed. For insurance purposes, we enter CMD console java -versioncommand.
Here Insert Picture Description
If your display is also shown above, then congratulations, your Java environment is no problem.


If this article helpful to you, remember to point like oh ~

Published 89 original articles · won praise 633 · Views 650,000 +

Guess you like

Origin blog.csdn.net/weixin_42292229/article/details/105205146