Build the JSP environment on Windows and NT

  • 2020-05-05 11:43:03
  • OfStack

Windows98, Windows NT 4.0, Windows 2000 professional, windows 2000 server,
jdk1_2_2-001 - win. exe

tomcat. zip (3.1)
I. software download
JDK
http: / / java. sun. com products/jdk / 1.2 /
Tomcat
http: / / jakarta. apache. org builds/tomcat release/v3. 1 /

Ii. Software installation
(1) JDK
1. Double-click the jdk1_2_2-001-win.exe file to install, and use the default configuration to install. The default installation directory of JDK is C: jdk1.2.2, and the default installation directory of JRE is C:Program FilesJavaSoftJRE1.2.
2. Restart the computer;
3 、更新下列环境变量:把C:jdk1.2.2in目录追加到PATH中; Put the. C: jdk1. 2.2 lib ools. jar; C: jdk1. 2.2 libdt. jar join CLASSPATH. Windwos modified in Autoexec.bat, NT update method: control panel - > system - > environment - > system variables;
(ii) Tomcat
1, with WinZIP and other decompression software to tomcat.zip decompression into a directory, I decompressed it to D:, it will automatically create tomcat subdirectory, so in D disk more than a directory D:/tomcat, I use $TOMCAT logo;
3. The port number of Tomcat is 8080 by default, which can be modified. Note that Tomcat has a separate HTTP server 1) open $TOMCATconfserver.xml;
2) modify ContextManager:
4. Double-click startup.bat in the $TOMCAT directory to launch Tomcat;
5. Enter http://localhost:$TOMCAT_PORT/ in the browser, and you will see the page of Tomcat Version 3.0 to indicate that Tomcat has been successfully installed;
6. Click Servlet Example to enter Servlet interface. Servlet should be executed.
7. Click JSP Example to enter JSP interface. It should be able to execute JSP.



Related articles: