1. My Computer (right-click Properties)----> Advanced system Settings----> Edit System Variables
For example:
Config variable name: Catalina_home variable value: D:\Program files\java\apache-tomcat-7.0.69
CLASSPATH .; %java_home%\lib;%java_home%\lib\tools.jar
Java_home C:\Program files\java\jdk1.8.0_144 (JDK installation location)
M2_home D:\MyMaven\apache-maven-3.3.9
Add%java_home%\bin%m2_home%\bin to the value of the PATH variable
Window+r output cmd command line output javac (direct execution can query the relevant commands and instructions)
Execute java-version (view Java version)
Execute javac-version (view JRE Runtime Environment version)
Issue: If Javac-version java-version version is inconsistent
WORKAROUND: You can replace the Java.exe Javaw.exe javaws.exe three files under C:\Windows\System32 with the corresponding version
Maven configuration:http://www.cnblogs.com/northern-light/p/7906552.html
environment variable configuration and Eclipse basic configuration