Home Java JavaBase Detailed jdk8 installation tutorial

Detailed jdk8 installation tutorial

Oct 20, 2020 pm 04:21 PM
jdk8

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!

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How do I use Java's Nashorn engine for scripting with JavaScript? How do I use Java's Nashorn engine for scripting with JavaScript? Mar 14, 2025 pm 05:00 PM

How do I use Java's Nashorn engine for scripting with JavaScript?

How do I use Java's enums to represent fixed sets of values? How do I use Java's enums to represent fixed sets of values? Mar 14, 2025 pm 04:57 PM

How do I use Java's enums to represent fixed sets of values?

What are different garbage collection algorithms in Java (Serial, Parallel, CMS, G1, ZGC)? What are different garbage collection algorithms in Java (Serial, Parallel, CMS, G1, ZGC)? Mar 14, 2025 pm 05:06 PM

What are different garbage collection algorithms in Java (Serial, Parallel, CMS, G1, ZGC)?

How do I use Java's try-with-resources statement for automatic resource management? How do I use Java's try-with-resources statement for automatic resource management? Mar 14, 2025 pm 04:59 PM

How do I use Java's try-with-resources statement for automatic resource management?

What is the Java Virtual Machine (JVM) and how does it work internally? What is the Java Virtual Machine (JVM) and how does it work internally? Mar 14, 2025 pm 05:05 PM

What is the Java Virtual Machine (JVM) and how does it work internally?

See all articles