1. Java opening-download JDK (attach URL link) and set environment variables

Download JDK from official website

Link: link
Insert picture description here

General process

After the download is complete, it is to set the environment variable-my computer right click properties-advanced settings-environment variables-new system variables-path settings

Diagram

Insert picture description here
Insert picture description here
Insert picture description here
The above variable value mine is like this:
Insert picture description here
then click path, click edit: the
Insert picture description here
Insert picture description here
last move up has been moved to the top (the first bit on the left of the new creation) (that is, move %JAVA_HOME%\bin to %SystemRoot%\system32 Above).
After that, you can write Java programs directly in cmd.
Insert picture description here
If it helps you, you might as well give it a thumbs up!

Guess you like

Origin blog.csdn.net/Freedom_cao/article/details/107172239