SWE 642 Installation Instructions for JRun

12/6/2000


The ISE department provides a publically accessible web site that supports servlets and JSPs, and I expect most of you to use Hermes as your "target distribution computer". However, you can set up your own PC to support your servlets and JSPs at home. This will allow you to do most of your development and testing without having to go through GMU's computer systems. Please remember installing your servlets on Hermes for grading is different and will take some time. The following installation instructions will help you get and install JRun on your PC.

JRun has a lot of features. This handout cuts through some of the more advanced features and focuses on setting JRun up so you can servlets and JSPs.

  1. Down load JRun. Visit www.allaire.com, goto the downloads area, register and get your copy.
  2. Install JRun using the installation wizard. You can put it on the same drive that has your JDSK, but it may not make a difference. Assume JRrun is on drive D.
  3. Copy compiled class and servlet files to the following directory:
    D:\JRun\servers\default\default-app\WEB-INF\classes
  4. Copy JSPs that you want to run locally to the following directory:
    D:\JRun\servers\default\default-app
  5. From the Start --> Programs --> JRun 3.0 menu, choose "JRun Default Server". This will launch the server and pop up a little control panel. On the left will be Server, Restart and Stop buttons, and on the right will be an Administrator: Start button. You don't need to do anything here (yet).

    You can minimize or actually close this window for now. You'll notice that an Icon for the Default JRun Server appears in your system tray down by your clock and volume control. This icon remains in the system as long as the server is running.

  6. The default localhost address for the Default Server is 8100. To run the JSP, launch a browser and enter the address as: http://localhost:8100/XXX.jsp

    NOTE: you may have to change your "internet options" or settings to "connect to the internet using a local area network" so your browser doesn't try to dial out if you have a dialup (although cancelling the dial-up process should still enable the connection to the localhost).

  7. When you replace a copy of a class in the ...\classes directory, the files do not get reloaded dynamically. You must restart the server. Double click on the icon in the system tray and choose the Restart button on the left side of the little control panel.
  8. That's it!

Courtesy: Craig Mosier and Thilo Rusche, Fall 2000.

Back to assignments page Back to schedule page