Java installation tutorial (solve why there is no jre in the installation package downloaded from the official website?)

Why is there no jre in the installation package downloaded from the official website?
If you enter this website: https://www.java.com/zh-CN/download/
, then what you download is not jdk but jre
insert image description here
and what we want is jdk, then enter this website: https:/ /www.oracle.com/java/technologies/downloads/
After downloading in windows, double-click the installation package, the next step along the way, and then it is installed.
insert image description here
Then you can configure the environment variables. It is recommended to read the rookie tutorial: https://www. runoob.com/java/java-environment-setup.html
After configuring the environment variables, input java, javac, and java -version in the cmd window, and if there are normal output information, it means that the java installation is successful. Of course, if one of the three commands java, javac, and java -version is

'XX' is not recognized as an internal or external command, operable program or batch file.

It means that the environment variables are not configured properly, and you need to review the configuration process.

Guess you like

Origin blog.csdn.net/weixin_43732022/article/details/127612289