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.
Install MySQL (the best combination with PHP): If you are using a window system, you 'd better install MySQL (the best combination with PHP) to c: mySQL (the best combination with PHP). You can install MySQL by default.
Jsp (the first choice for SUN Enterprise Applications) server is Jakarta tomcat (a very useful JSP running platform) 4.0. The latest version is 4.0.4. Download Page: http://jakarta.apache (the most popular WEB server platform for Unix ). org/builds/jakarta-tomcat (a good JSP running platform)-4.0/release/v4.0.4-b2/
Install jdk by default, but install jdk first. It is best to install jdk in the same directory as jdk, such as d: omcat (a very useful JSP running platform)
Step 2: After the installation is complete, we need to configure my jsp (preferred for SUN Enterprise Applications) server to run normally during the configuration period:
1. In win 98:
By editing the autoexec. bat file and the set command,
Set JAVA_HOME = d: jdk1.4
Set tomcat (a very useful JSP running platform) _ HOME = d: omcat (a very useful JSP running platform)
Set CLASSPATH = d: omcat (a good JSP running platform) commonlibservlet. jar
Set PATH = c: windows; d: jdk1.4in
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 (a very useful JSP running platform) _ HOME: d: omcat (a very useful JSP running platform)
PATH: d: jdk1.4in; d: omcat (a good JSP running platform) in
Last test:
D: omcat (a very useful JSP running platform) instartup. bat starts tomcat (a very useful JSP running platform) server (the command to close is d: omcat (a very useful JSP running platform) inshutdown. bat), okay, so far, a jsp (the first choice for SUN enterprise-level applications) server is ready. the Method for Testing jsp (the preferred choice for SUN enterprise-level applications) is: http: // localhost: 8080, so that we can see tomcat (a very useful JSP running platform) welcome Page!