Overview Product Tour Installation Registration FAQs |
1. Install Java Runtime Environment from java.sun.comInstall 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.1Download JSDK or latest release from java.sun.com3. 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 contextThe instructions provided here place the servlets in example context. If you want place the servlets inanother 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.dllz2divert.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-infIf 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.
8. Start up server.c:\jsdk2.1>set CLASSPATH=c:\jsdk2.1\webpages\divert\divert.jar c:\jsdk2.1>startserverA 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 browsersProceed to set up your browsers to complete the installation |