Home  >  Article  >  Database  >  Apache+Servlet+Jsp环境设置(上)_MySQL

Apache+Servlet+Jsp环境设置(上)_MySQL

WBOY
WBOYOriginal
2016-06-01 14:09:28827browse

Apacheservlet

  本文只讨论如何在Windows NT 4.0上安装Apache+Servlet+Jsp。本文中的配置情况如下:

Windows NT 4.0
jdk1_2_2-001-win.exe
apache_1_3_12_win32.exe
ApacheModuleJServ.dll
tomcat.zip(3.0)

一. 软件下载

  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

二. 软件安装

  (一)JDK
    1、双击jdk1_2_2-001-win.exe文件进行安装,使用缺省配置进行安装,JDK的缺省安装目录为;
      C:\jdk1.2.2,JRE的缺省安装目录为C:\Program Files\JavaSoft\JRE\1.2;
    2、重启计算机;
    3、更新下列环境变量:把C:\jdk1.2.2\bin目录追加到PATH中;把
      C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\lib\dt.jar加入到CLASSPATH中。更新
      方法:控制面板->系统->环境->系统变量;
    4、测试applet:
       1)打开command窗口;
       2)切换到C:\jdk1.2.2\demo\applets\TicTacToe目录;
       3)运行appletviewer example1.htm;
       4)一切正常;
    5、测试application:
        1)在我的D:\HZQ\Java目录下创建一个test.java文件,内容如下:
          public class test
          {
           public static void main(String arc[]){
           System.out.println("JDK安装成功了,朋友!");
           }
          };
       2)打开command窗口;
       3)切换到D:\HZQ\Java目录;
       4)运行javac test.java进行编译;
       5)运行java test运行这个程序;
       6)一切正常。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn