The first step: we will do some preparatory work-software download and installation:
JDK is 1.4 download: http://java.sun.com/j2se/1.4/index.html
All is the default installation method (tips best to set the JDK directory into a simple situation such as d:\jdk1.4)
Then test the following installation success: Run cmd---type javac command-〉 see Java help Line to prove the installation was successful.
MySQL installation: If you are using Windows system Please install MySQL to C:\mysql, the rest is installed by default
JSP server is Jakarta TomCat 4.0, now the latest is 4.0.4, download page: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b2/
or by default, install the JDK first. It is best to install the JDK in the same directory as D:\tomcat
Step two: After the installation, we will be able to work with our JSP server to configure the period of normal operation:
1. Under Win 98:
Set by editing the Autoexec.bat file and the set command.
Set java_home=d:\jdk1.4
Set Tomcat_home=d:\tomcat
Set Classpath=d:\tomcat\common\lib\servlet.jar
Set Path=c:\windows;d:\jdk1.4\bin
Note that sometimes you may also want to increase your environmental space: Edit the C:\Config.sys file and add the following code at the end:
shell=c:\command.com/e:1024/p
2, under the Win2000:
Add Environment variables:
java_home:d;\jdk1.4
Tomcat_home:d:\tomcat
PATH:d: \jdk1.4\bin;d:\tomcat\bin
Final Test:
D:\tomcat\bin\startup.bat Start Tomcat Server (Shutdown command is d:\tomcat\bin\shutdown.bat), OK, so far, a JSP server has been done. The method to test the JSP is: HTTP ://localhost:8080, so we can see the Tomcat welcome Interface!