Java learning road
Download JDK from official website
Link: link
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
The above variable value mine is like this:
then click path, click edit: the
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.
If it helps you, you might as well give it a thumbs up!