Home > Java > JavaBase > Detailed jdk8 installation tutorial

Detailed jdk8 installation tutorial

藏色散人
Release: 2020-10-20 16:21:59
Original
47257 people have browsed it

How to install jdk8: First double-click the exe file and install it step by step according to the default settings; then right-click "This Computer-Properties-Advanced System Settings-Advanced-Environment Variables-New"; then create a new environment variable JAVA_HOME; finally configure the environment variable Path.

Detailed jdk8 installation tutorial

Recommended: "java video tutorial"

Win10 system installation jdk8 whole process

Download the installation file

The installation and configuration of jdk is the first step in learning Java. The specific process is recorded below. First download the corresponding version according to your system. Download addresshttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

二 Installation

Double-click the exe file and install step by step according to the default settings.


Three configuration environment variables

Right-click "This Computer" - "Properties" - " Advanced System Settings" - "Advanced" - "Environment Variables" - "New":


## 1. Create a new environment variable JAVA_HOME

Variable name: JAVA_HOME;

Variable value: D:\JDK\jdk1.8.0_161. The variable value is your own jdk installation directory:

## 2. Create a new environment variable CLASSPATH

Variable name: CLASSPATH

Variable value:. ;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar You need to pay attention to the ".;" in front of the variable value



3. Configure the environment variable Path

Double-click Path, click New, add "%JAVA_HOME%\bin"; click New again, add "%JAVA_HOME%\jre\bin".

## Please pay special attention here. The win10 environment variable values ​​​​are line by line. Do not click New directly. Add "%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin ;", otherwise a "javac is not an internal or external command" error will appear.

At this point the environment configuration is complete~

Four command line windows to view

Win R key The run window pops up, enter the cmd command to open the following window to test whether your Java is successfully installed; test the command Java. If the following message appears, it proves that the Java environment has been configured successfully.

The above is the detailed content of Detailed jdk8 installation tutorial. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template