Installing the Java Web Server




Download 24 Kb.
Sana25.12.2019
Hajmi24 Kb.
#4959

Installing the Java Web Server

For your future assignment in this Java class, you are going to


write JAVA Servlet. So you may want to take some time now
to install JAVA Web Server (JWS) on you Laptops.
JWS is not installed on the cluster. This e-mail is about how to
download and install JWS. JWS is a trialware on Sun's web site.

(1) go to


http://www.sun.com/software/jwebserver/try/index.html

(2) Click "Try now" button for Microsoft Window NT

(3) Sign on use the following information:
Personal ID: mism_java
Password: oopjava

(4) Click "Download Java Web Server 2.0 EA,Global, Windows/Intel ( 9.35 MB


)". It will promot you to give a directory to save the installation file.
You may save it in a temp directory or anywhere you like but rememeber the
directory.

(5) After the download process ends, go to the diretcory you save it , find


a file named "jwsr2_0-win-try-gl.exe". Run this file and follow the
instructions.

(6) After installation, Find a fold named JavaWebServer2.0. There is a


Readme file. Read it and follow it when you run or shut down the server. To
run the server, open a DOS window, type in

C:\cd JavaWebServer2.0\bin

then
C:\JavaWebServer2.0\bin >httpd

If you choose auto start when you install JWS, you may not need to do this


and just go ahead to next step to test your server.

(7) To test your sever, run Internet Explorer and type in:


http://localhost:8080/
A welcome page of JWS will pop up.
If everyting goes ok so far, You may try to run a servlet. Type in
http://localhost:8080/examples/simple_servlets/index.html.
Run the servlet samples on this page and test your JWS server.

Then, you're all done.

Download 24 Kb.




Download 24 Kb.