Transfer from http://blog.csdn.net/yuan892173701/article/details/6916697
First, JDK1.7 installation
1. Download jdk,:http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
2. Add system environment variables, my computer, properties---Advanced environment variables (if the environment variable you added already exists, click "Edit" to add it, or click "New" to 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 the 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", the value of the variable is separated by a semicolon, the value of the variable does not need a semicolon at the end )
3, "Start", "Run", input cmd, enter "Java-version", "Java", "Javac" several commands at the command prompt, the screen shows that the environment variable configuration is successful
Second, Tomcat7.0.22 installation configuration
1. Download tomcat7.0.22: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 (the directory that Tomcat extracted to)
(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, enter at command prompt Startup.bat, then the Tomcat command box will pop up, output the boot log; Open the browser input http://localhost:8080/ , If you enter the Tomcat welcome interface, then congratulations, the configuration is successful.