Step 1: make some preparations-download and install the software: jdk is 1.4 download: java.sun.comj2se1.4index.html is all the default installation method (tips: Set the jdk directory to a simple situation such as d: jdk1.4) and test whether the following installation is successful: run cmd ---> type the javac command.> You can see the help of java in Windows 98.
Step 1: make some preparations-download and install the software:
Jdk is 1.4 Download: http://java.sun.com/j2se/1.4/index.html
All are the default installation methods (tips: Set the jdk directory to a simple situation, such as d: \ jdk1.4)
Then, test whether the installation is successful: run cmd ---> type the javac command.> The java help line shows that the installation is successful.
MySQL installation: If you are using a Windows system, you 'd better install mysql to c: \ mysql. the other steps are to install MySQL 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/
It is still the default installation method, but jdk must be installed first. it is best to install jdk in the same directory, such as d: \ tomcat.
Step 2: After the installation is complete, we need to configure my jsp server and it can run normally:
1. in win 98:
By editing the autoexec. bat file and the set command,
Set JAVA_HOME = d: \ jdk1.4
Set TOMCAT_HOME = d: \ tomcat
Set: \ tomcat \ common \ lib \ servlet. jar
Set PATH = c: \ windows; d: \ jdk1.4 \ bin
Note that you may also need to increase your environment space: Edit the c: \ config. sys file, and add the following code at the end:
Shell = c: \ command.com/e: 1024/p
2. in win2000:
Add Environment variables:
JAVA_HOME: d; \ jdk1.4
TOMCAT_HOME: d: \ tomcat
PATH: d: \ jdk1.4 \ bin; d: \ tomcat \ bin
Last Test:
D: \ tomcat \ bin \ startup. bat starts the tomcat server (the command to close is d: \ tomcat \ bin \ shutdown. bat), okay. so far, a jsp server has been settled. the method for testing jsp is: http: // localhost: 8080, so that we can see the welcome interface of tomcat!