house fly

JSwat Project

How to Compile JSwat


Setting the Classpath

Before you can compile JSwat, you will need to add the JSwat 'classes' directory to your CLASSPATH environment variable. Since JSwat depends on the JPDA library, you will need to include the appropriate jar file. See the installation instructions for how that is done.

Compiling JSwat

There are two possible paths (well, reasonable ones anyway) for compiling the JSwat source code.

With jmake.pl
For this path, you will need the jmake.pl Perl script to compile JSwat. The script is written in Perl which means you will need an appropriate interpreter to run the script.
With Perl installed and jmake.pl in your path, open a command shell and go to the JSwat 'classes' directory, or its parent directory. From here you can type 'jmake.pl' to compile the entire JSwat program.
With ant
Jakarta Ant is a tool used by the JSwat project for building the release packages of the software. It just so happens that this involves compiling the source code. Therefore, you could use ant to compile JSwat by passing the 'compile' target name. Then to run JSwat, simply invoke ant again, passing the 'go' target.


Back