下载:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
打开下载的文件,出现如下界面,然后双击图标安装
一直下一步即可
安装完后,打开命令行,输入
java -version
输出
java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
说明安装成功!