Note: When configuring variables in this article, the system variables are configured in a way that is used.
The steps are as follows: Right-click "Computer", select "Properties", then click "Advanced System Settings", click "Environment variables" to set environment variables, the following system variables need to be configured:
One, JDK configuration
1, first download a good JDK, click to complete the installation.
2, after the installation is completed, find the installation of JDK target location, such as my installation location: E:\Program files\java\jdk1.7.0_51.
3, the next need to configure the JDK environment variables, configured with three variables are: Java_home, classpath and path.
A, first configure Java_home.
Variable name: java_home
Variable Value: E:\Program files\java\jdk1.7.0_51
B, second configuration classpath
Variable name: CLASSPATH
Variable value:.; %java_home%\lib\dt.jar.; %java_home%\lib\tools.jar
C, the last configuration path
Variable name: Path
Variable value:%java_home%\bin; Second, tomcat configuration
1, Tomcat configuration download and decompression can be accessed, my Tomcat location for; E:\apache-tomcat-7.0.52.
2, the need to configure two variables, respectively, catalina_base and catalina_home two variables.
A, first configure Catalina_base.
Variable name: catalina_base
Variable Value: E:\apache-tomcat-7.0.52
B, first configure Catalina_home.
Variable name: catalina_home
Variable Value: E:\apache-tomcat-7.0.52
3, also need to configure the path path
Variable name: Path
Variable value:%catalina_home%\lib;%catalina_home%\bin;
The value of the last path is:%java_home%\bin; C:\windows\system32\;%catalina_home%\lib;%catalina_home%\bin;
Third, maven configuration download, the path is as follows: http://maven.apache.org/download.cgi
1, download the compressed version of the Apache-maven-3.2.5.zip, unpack it into the D:\Java folder, if there is no Java files, you can create Java files, but must be placed under the root directory.
2, after the completion of the previous step, the right button "computer", select "Properties", then click "Advanced System Settings", click "Environment variables" to set environment variables, the following system variables need to configure:
3, the configuration of the system variables are as follows: Maven_home Configure and modify the PATH variable.
A, variable name: Maven_home variable value: E:\Program files\java\apache-maven-3.2.5
B, variable name: Path variable Value:%maven_home%\bin
4, the final test configuration is successful: With Win key +r, to open a command line prompt window, that is, the DOS interface, input MVN--version If the following conditions indicate that the configuration was successful