How to compile Jigsaw

# Jigsaw
How to compile Jigsaw

Jigsaw Home / Documentation Overview / Tutorials

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

Note: Since 2.0.2, the MAKEDIR variable is no more used, so don't take care of it.

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

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

instead of

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

then

export CLASSPATH

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

# 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

Note: Since 2.0.2, the MAKEDIR variable is no more used, so don't take care of it.

And your CLASSPATH should become:

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

instead of

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

then

export CLASSPATH

Then you can use make in any directory under `<instdir>\Jigsaw\src\classes`, provided you have "make" installed.