# How to compile Jigsaw

Jigsaw is delivered with a set of makefiles, so you can use the make tool to compile Jigsaw.

## On UNIX machine

According to your shell (for example bash), just set the following environment variable:
MAKEDIR = `<instdir>/Jigsaw/src/makefiles`

export MAKEDIR

Now you have to update your CLASSPATH to compile Jigsaw and use the new compiled classes.

CLASSPATH = `<instdir>/Jigsaw/src:...`

instead of

CLASSPATH = `<instdir>/Jigsaw/classes/jigsaw.zip:...`

then

export CLASSPATH

Then you can use make in any directory under `<instdir>/Jigsaw/Jigsaw/src`.

## On Windows Machine

You can use the make tool from the GNU tools for Windows.

Then you just have to set the same environment variable (with bash):

MAKEDIR = `<instdir>\Jigsaw\src\makefiles`

export MAKEDIR

And your CLASSPATH should become:

CLASSPATH = `<instdir>\Jigsaw\src:...`

instead of

CLASSPATH = `<instdir>\Jigsaw\classes\jigsaw.zip:...`

then

export CLASSPATH

Then you can use make in any directory under `<instdir>\Jigsaw\Jigsaw\src`.

Jigsaw Team
$Id: compile.html,v 1.8 1998/07/29 15:17:13 benoit Exp $