Divert Installation (JSDK2.1 on Windows)


Overview
Product Tour
Download
Installation
Registration
FAQs
Email


    

1. Install Java Runtime Environment from java.sun.com

Install JRE version 1.2.2 or later. After installing JRE, run java on the command line to make sure it is OK.
C:\>java -version
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)

2. Download Java Servlet Development Kit 2.1

Download JSDK or latest release from java.sun.com

3. Expand the downloaded JSDK zip file.

Subsequent steps in this guide assumed you extract JSDK zip file to c:\

4. Publish Divert.html.

The instruction here, publish Divert.html in c:\jsdk2.1\webpages\divert. You can publish Divert.html in any other directory you choose.
If you publish in another directory please follow general instruction here.
> set PUBPATH=c:\jsdk2.1\webpages\divert\n> mkdir %PUBPATH%
> copy divert.jar %PUBPATH%
> copy Divert.html %PUBPATH%

5. Move the servlet classes files to examples context

The instructions provided here place the servlets in example context. If you want place the servlets in
another context, please follow general instructions here.
> set SERVPATH="c:\jsdk2.1\examples\Web-inf\servlets"
> copy DivertServlet.class %SERVPATH%
> copy z2Element.class %SERVPATH%
> copy UpdParent.class %SERVPATH%
> copy UrlLoad.class %SERVPATH%
> copy Cookies.class %SERVPATH%
> copy Cookie.class %SERVPATH%
> copy win32\Validate.class %SERVPATH%
> copy DivertServlet.properties %SERVPATH%

6. Move z2divert.dll

z2divert.dll is a library. It is refered to by divert servlets classes.
> copy z2divert.dll c:jsdk2.1\n

7. Setup users.

> copy win32\passwd.txt c:\jsdk2.1\examples\Web-inf
If you moved passwd.txt to other directory than that specified above, you must edit DivertServlet.properties to specified file location.
Edit passwd.txt to add the users. This file consist of 3 column separated by TAB character.
  • First column is the userid.
  • Second column is the password.
  • Third column is the user directory.
If you prefer to have your own user validation, please follow the link here.

8. Start up server.

c:\jsdk2.1>set CLASSPATH=c:\jsdk2.1\webpages\divert\divert.jar
c:\jsdk2.1>startserver
A better alternative is to set CLASSPATH in the begining of startserver.bat. In doing so, you easily start up server by double clicking startserver from window.

9. Setup browsers

Proceed to set up your browsers to complete the installation