Java installation and environment configuration

download

Choose the commonly used ones JDK 8for installation, you can go to the official website to download or domestic mirrors, domestic mirrors are faster and more convenient
Here it is recommended to use Huawei’s mirror
https://repo.huaweicloud.com/java/jdk/
insert image description here
Select a version, and then download the system The corresponding version, my system is win 10 64-bit, choose to download as required,
insert image description here
then install JDK, select the installation directory,
insert image description here
and complete the installation in sequence

Configuration Environment

  1. Use search to find the system environment variable configuration, of course there are other ways to enter, I am used to using search
    insert image description here
  2. Select Advanced - Environment Variables
    insert image description here
  3. Configure system variables
    insert image description here
    First configure JAVA_HOME, configure to the folder where JDK is installed,
    insert image description here
    and then configure CLASSPATH
    .;%JAVA_HOME%\lib;
    
    insert image description here
    Then configure Path and create a new record
    %JAVA_HOME%\bin
    
    insert image description here
    insert image description here

test

Open cmd, the command operator interface
insert image description here
Simple test, if you can see the version number, it means the installation is successful

Guess you like

Origin blog.csdn.net/DespairC/article/details/127646088