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
1. Double-click the jdk1_2_2-001-win.exe file and use the default configuration to install JDK. The default installation directory of JDK is;
C: \ jdk1.2.2. The default installation directory of JRE is C: \ Program Files \ kerberoft \ JRE \ 1.2;
2. restart the computer;
3. Update the following environment variables: append the C: \ jdk1.2.2 \ bin directory to the PATH;
C: \ jdk1.2.2 \ lib \ tools. jar; C: \ jdk1.2.2 \ lib \ dt. jar is added to CLASSPATH. Update
Method: Choose Control Panel> system> environment> system variables;
4. Test the 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 is normal;
5. test application:
1) create a test. Java file under my D: \ HZQ \ java directory. The content is as follows:
Public class test
{
Public static void main (String arc []) {
System. out. println ("JDK has been installed successfully. Thank you! ");
}
};
2) Open the command window;
3) switch to the D: \ HZQ \ Java directory;
4) Run javac test. java for compilation;
5) run java test to run the program;
6) Everything is normal.