1. Installation and configuration of JDK
1) Download the JDK, I downloaded the 1-jdk-6u26-windows-i586.exe, placed in the D:\STUDYSYSTEM\JAVAWEB\JDK directory.
2) Install the JDK, directly you download the. exe file can be installed, note that the installation directory to modify their own, the default is the C drive, preferably not on the C drive, my JDK installation directory is D:\Java\jdk1.6.0_26.
3) Configure the environment
Right-click Computer, select Properties, go to the System panel, select Advanced System settings, select environment variables, and set three parameters.
Java_home:d:\java\jdk1.6.0_26
Path:%java_home%\bin
CLASSPATH:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar
2. Download Development tools
I'm using eclipse, download the eclipse package, unzip it directly to disk (for example, D:\StudySystem\JavaWeb\eclipse) to open it.
3, the installation and configuration of the server
1) Download the 2-apache-tomcat-6.0.32-windows-x86.zip software package and extract it to a disk partition (for example, D:\StudySystem\JavaWeb\2- apache-tomcat-6.0.32-windows-x86\apache-tomcat-6.0.32) as the Tomcat server directory structure.
2) Configure, open Eclipse, click "Windows", select "preferences", find "Server", click "Runtime Environment", click "Add", select the version of the server you want, I choose 1.6 version. Then click Next, select the Tomcat installation directory, D:\StudySystem\JavaWeb\2-apache-tomcat-6.0.32-windows-x86\apache-tomcat-6.0.32, click Finish to OK. (Note that in the final step, the option values below the JRE are changed to JDK).
3) There is another way to install the server, the server installed directly in the computer kernel, download EXE files, for example, I downloaded the apache-tomcat-7.0.42.exe, click Install. Then find the Bin folder in the installation directory, open Find Tomcat7.exe, click, the situation appears.
Then click Tomcat7w.exe to find the start start.
4) Testing the Tomcat server
If you enter http://localhost:8080 or http://127.0.0.1:8080/in the browser address bar, the situation will occur.
Installation and configuration of the JSP runtime environment