This article only discusses how to install Apache + servlet + JSP on Windows NT 4.0. The configuration in this article is as follows:
Windows NT 4.0
Jdk1_2_2-001-win.exe
Apache_1_3_12_win32.exe
Apachemodulejserv. dll
Tomcat.zip (3.0)
1. Software Download
JDK
Http://java.sun.com/products/jdk/1.2/
Apache server
Http://www.apache.org/dist/binaries/win32/apache_1_3_12_win32.exe
Apache JServ
Http://jakarta.apache.org/builds/tomcat/release/v3.0/win32/ApacheModuleJServ.dll
Tomcat
Http://jakarta.apache.org/builds/tomcat/release/v3.0/tomcat.zip
Ii. Software Installation
(1) JDK
install jdk1_2_2-001-win.exe using the default configuration. The default installation directory of JDK is
C: \ jdk1.2.2, the default installation directory of JRE is c: \ Program Files \ unzip oft \ JRE \ 1.2;
2. restart the computer.
3. Update the following environment variables: \ jdk1.2.2 \ bin directory is appended to path;
C: \ jdk1.2.2 \ Lib \ tools. jar; C: \ jdk1.2.2 \ Lib \ DT. add jar to classpath. Update
method: Control Panel-> system-> environment-> system variables;
4. Test Applet:
1) Open the command window;
2) switch to the C: \ jdk1.2.2 \ demo \ applets \ tictactoe directory;
3) Run appletviewer example1.htm;
4) Everything works properly;
5. Test Application:
1) create a test under my D: \ hzq \ Java directory. java file with the following content:
public class test
{< br> Public static void main (string arc []) {
system. out. println ("JDK installation successful, friend! ");
}< BR >};
2) Open the command window;
3) switch to the D: \ hzq \ Java directory;
4) run javac test.
5) run Java test to run the Program .
6) Everything works properly.