# Jigsaw
Installation Procedure

Jigsaw Home / Documentation Overview

# Prerequisite:

Before reading further make sure:

- That you have downloaded the latest Jigsaw distribution (2.0.1)
- That you have downloaded any implementation of Java for your platform (JDK1.1.x or JDK1.2)
- If you're using the zip distribution, make sure it's at least version 6.x

This document describes how to install Jigsaw. As an example, we are assuming that you are running either on Windows (be it 95 or NT) or on UNIX, even though Jigsaw will (should ?) run on any platform that supports Java.

The installation process involves the following steps:

- Unpack the distribution file
- Set up some environment variables
- Build the right property files
- Run Jigsaw

# Unpacking the distribution file

Pick a place to unpack the distribution: we'll call this directory the installation directory (abreviated as INSTDIR). This can be any directory, you just have to change your current working directory to it:

    UNIX : cd INSTDIR

    Windows : cd INSTDIR

Now unpack the file:

    UNIX : cat jigsaw.tar.gz | gzip -d | tar xomvf -

    Windows : unzip jigsaw.zip

This will create a number of directories under the Jigsaw directory:

`Jigsaw/src`
  Contains Jigsaw sources.
`Jigsaw/classes`
  Contains the pre-compiled classes.
`Jigsaw/lib`
  Contains some native code support for solaris.
`Jigsaw/Jigsaw`
  Is a sample root directory to run the server in. This directory in turns contain the following sub-directories:
  `Jigsaw/Jigsaw/config`
    Is the configuration directory for the server
  `Jigsaw/Jigsaw/configadm`
    Is the configuration directory for the administration server.
  `Jigsaw/Jigsaw/logs`
    Is the normal directory for log files
  `Jigsaw/Jigsaw/bin`
    Contains some shell scripts to help you start Jigsaw.
  `Jigsaw/Jigsaw/cache`
    The directory to use for caching when using Jigsaw as a caching proxy.
  `Jigsaw/Jigsaw/WWW`
    Is your exported file space

You are now ready for the next section, which explains how to setup your environment.

# Setting up your environment

As Jigsaw is just a set of Java classes, you need to specify to the Java interpreter the place where Jigsaw classes are stored. This is usually done by setting some CLASSPATH environment variable. This is simply done by the following command:

     UNIX
                # This depends on the shell you are using, we're assuming /bin/sh
                CLASSPATH=INSTDIR/Jigsaw/classes/jigsaw.zip:.
                export CLASSPATH

     Windows
                set CLASSPATH=INSTDIR\Jigsaw\classes\jigsaw.zip;.

Don't forget to change INSTDIR with the absolute path of the place you have unpacked the distribution. You should now be ready to run Jigsaw.

Warning: on some Windows Java implementation, prefixing the CLASSPATH with the disk drive letter may cause some confusion. If java complains about not being able to find some class, you may want to remove the disk drive letter from the CLASSPATH. Note also that if you are adding this line in a batch file, you must escape the '\' the line will be: `set CLASSPATH=INSTDIR\\Jigsaw\\classes\\jigsaw.zip`

# Build the right property files

Be careful to have the right CLASSPATH (see above):

     UNIX
             cd INSTDIR/Jigsaw/Jigsaw
             java Install

     Windows
             cd INSTDIR\Jigsaw\Jigsaw
             java Install

# Running Jigsaw

You are now all set to run Jigsaw. Just type in the following command:

     UNIX
             cd INSTDIR/Jigsaw/Jigsaw
             java org.w3c.jigsaw.Main -host host -root INSTDIR/Jigsaw/Jigsaw

    Windows
             cd INSTDIR\Jigsaw\Jigsaw
             java org.w3c.jigsaw.Main -host host -root INSTDIR\Jigsaw\Jigsaw

Don't forget to susbstitute to INSTDIR the absolute path of the location where you have unpacked the distribution file, and to host the full IP hostname of the machine running Jigsaw.

Jigsaw should be running, and will probably have emited a message like:

    jigsaw Sample/Jigsaw> java org.w3c.jigsaw.Main
    loading properties from: /auto/tarantula/u/tarantula/0/w3c/ylafon/Sample/Jigsaw/config/server.props
    Jigsaw[2.0beta1]: serving at http://jigsaw.inria.fr:8007/
    *** Warning : no logger specified, not logging.
    JigAdmin[2.0beta1]: serving at http://jigsaw.inria.fr:8009/

# Further reading

At this point, it is recommended that you start reading the documentation, available from your server at `/Doc` (i.e. in the above example, the full URL would be `http://www24.w3.org:8001/Doc/`

Here is a roadmap to the documentation:

- You should first start by reading the architecture overview. More on the Jigsaw 2.0 design
- You should then configure your server to meet your need. There are two sources of documentation for this stage:
  - The configuration tutorial
  - The Jigsaw aministration tool (JigAdmin).
- At this point, you should have understood the configuration process, you can now browse the rest of the documentation in whatever order you want.

Jigsaw Team
$Id: installation.html,v 1.26 1999/03/16 13:39:36 bmahe Exp $

Copyright © 1999 W3C (MIT, INRIA, Keio ), All Rights Reserved. W3C liability, trademark , document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.