一、查看是否安装了JDK
(1)cmd进入命令窗口
(2)输入java -version,出现:
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
表示已经安装了JDK
(3)输入java -verbose,回车
[Loaded java.text.FieldPosition$Delegate from C:\Program Files (x86)\Java\jre1.8.0_141\lib\rt.jar]