This article reprinted from: https://blog.csdn.net/hai1991yu/article/details/80920134
Computer software installation required: Java VM
Official website to download http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html , there is an initial lead in the official website to download JRK and download the JRE alone, this has led to an environment variable set last time no dt.jar and tools.jar,
After subsequent download jdk-8u211-windows-x64.exe from the official website everything is normal, then follow the steps in the link settings.