I previously installed the JDK7, now installs 8, according to the following document configuration problem:
Building the Java Development environment (Configuring the Java Development Environment)-Belieflee-Blog Park
Http://www.cnblogs.com/Belieflee/p/4778315.html
Windows manages multiple versions of Java--resolving ' has value ' 1.8 ', but ' 1.7 's ' is required ' method--today's heart-blog Park
Http://www.cnblogs.com/zhunian/p/5590478.html
After uninstalling JDK version 7, the Java command can be used, but Javac still cannot: "Not necessarily a version conflict issue"
Ask a colleague to help, find the following article: Reset the CLASSPATH and path path can be resolved.
Java Set Environment variables _ Baidu Experience
Http://jingyan.baidu.com/article/c85b7a6414f2ee003bac95d5.html
Java Development Environment JDK configuration-Problem handling