First, JDK1.7 installation
1, download jdk, download address: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
2, add system environment variable, my Computer-> attribute-> advanced-> environment variable (if the added environment variable already exists, click "Edit" Add, otherwise click "New" Add)
(1) Variable name: Java_home variable Value: D:\Program files\java\jdk1.6.0_29 (click "New", enter variable name, variable value, no semicolon required at the end of variable value)
(2) Variable name: CLASSPATH variable Value: D:\Program files\java\jdk1.6.0_29\lib\dt.jar;d:\program files\java\jdk1.6.0_29\lib\ Tools.jar ("New", no semicolon required at the end of the variable value)
(3) Variable name: Path variable Value: D:\Program files\java\jdk1.6.0_29\bin ("edit", variable values separated by semicolons, the value of the variable does not need a semicolon)
3, "Start"-> "Run"-> input cmd, in the command prompt input "java-version", "Java", "Javac" several commands, appear screen, indicating the success of environment variable configuration
Second, Tomcat7.0.22 installation configuration
1, download tomcat7.0.22 download address: http://tomcat.apache.org/download-70.cgi
2, add system environment variables, My Computer-> Properties-> advanced system settings-> environment variables (Operation IBID.)
(1) Variable name: Catalina_base variable Value: D:\Program files\apache-tomcat-7.0.22 (directory to which Tomcat is extracted)
(2) Variable name: Catalina_home variable value: D:\Program files\apache-tomcat-7.0.22
(3) Variable name: Catalina_tmpdir variable value: D:\Program files\apache-tomcat-7.0.22\temp
(4) Variable name: Path variable value: D:\Program files\apache-tomcat-7.0.22\bin
3, run Tomcat7.0.22, "Start"-> "Run"-> input cmd, input startup.bat at the command prompt, then the Tomcat command box will pop up, output start log; open Browser input http://localhost : 8080/, if you enter the Tomcat welcome interface, then congratulations, configuration success.