The first step to learning Java is to configure the JDK environment, and JDK8 is the most widely used JDK version. This article explains how to download, install, and uninstall JDK8. The following environment is Windows10

Download the JDK installation package

Oracle’s website

All JDK versions

JDK8 (Oracle’s website)

Select the download at the top

X86 32-bit, X64 64-bit, according to their own operating system bit selection for version download

After clicking, you need to agree to click next

If you do not have an Oracle account, create one

The installation

You are advised to install the JDK and JRE in the same parent directory

JDK

To install the JDK, you can directly enter the path in the red box, and then click OK

Modification complete! Click next

JRE

Install JRE, select custom folder (need to create a new folder)

Modification complete! Click next

Finally, the installation is complete, click close

Configuring environment Variables

The JAVA_HOME CLASSPATH Path needs to be configured

JAVA_HOME

Fill in the position you just installed

CLASSPATH

The following configuration is convenient for later configuration of multiple JDK versions

It is preceded by a period (.) and a semicolon (;). You can add a semicolon if necessary

.; %JAVA_HOME%\libCopy the code

Path

 %JAVA_HOME%\bin
Copy the code

Testing the JDK environment

Open the command prompt and enter Java -version. If the correct version information is displayed, the installation is successful

Java, javac, these two commands can also be tested, if a heap of information is displayed, the installation is successful

Configuring multiple JDKS

Install and configure multiple versions of the JDK

uninstall

Select these two to uninstall

\