Compiling From Source

Although the download page includes a precompiled Java archive for your convenience, you may also create your own Java archive from the leakiEst source code, which is also available on the download page.

To compile leakiEst from source, you will need to install the following prerequisite:

After downloading the source tarball, unpack it:

$ tar xf leakiest-1.4.9.tar.bz2
$ cd leakiest-1.4.9/src

Compile the source code files into class files with the Java compiler:

$ javac bham/leakiest/*.java

Finally, create a Java archive from the class files:

$ jar cfe leakiest-1.4.9.jar  bham.leakiest.TestInfoLeak  bham/leakiest/*.class  bham/leakiest/*/*.class

This will output a Java archive, leakiest.jar, that can be executed in the same manner as the precompiled Java archive on the download page:

$ java -jar leakiest-1.4.9.jar

The getting started page of the user guide describes how to use this Java archive.