Overview

JACOB is built on windows machines using ANT, most commonly from inside of Eclipse. The main steps for getting a working Jacob build are:
  1. Check out the source code or unpack the source zip file from sourceforge
  2. Install the Development Environment
  3. Configure the build by creating a compilation_tools.properties file.
  4. Run Eclipse and load the project into eclipse
  5. Open the build.xml file in Eclipse and run the default ant target

Repository Organization

Unpack the source archive zip file or check the files out of CVS into d:\jacob or some other familiar place. Source Java and JNI files are located in seperate packages from the unit tests and the samples.

The java code is in .\src.
The C++ code is in .\jni.
Code is compiled into .\release

The Servlet examples that required j2ee libraries to compile have temporarily been removed.

Development Environment

The simplest build environment involves MS Visual C++ 6.0, Eclipse 3.1 and JDK 1.4. In that situation, you would just create the compilation_tools.properties using the example build.xml as a template. All of the releases, up through 1.11, were built using Visual C++ 6.0.

64 bit builds are supported with release 1.11. Tools required for 64 bit builds include:

Compilation using JDK 1.5 has not been tested

Build Process

The build process is based on ANT. It cannot be built using MAKE. You can run ANT from inside of eclipse or from the command line. The ant process is driven off of a configuration file named compilation_tools.properties that describes the locations of the JDK and Microsoft C++ tools. The build.xml file in the root directory contains examples of the contents of this file.

There are two main ant targets.

Eclipse Java IDE

Eclipse users have to do some minor tweaks to their project if they want to use the integrated build process. This is because the unit tests are files located in the "unittest" directory while the project source files themselves are in "src" the root directory. By default, eclipse will add the entire project as source. This messes up the package naming. In addition, the build directory should be set to be the same place the ANT build puts the compiled java classes. A couple small tweaks to the build path fix these problems:

Open up the project properties and go to the "Java Build Path" properties panel.

Running Samples and Tests

Samples and test programs can be found in the source jar or in CVS. The programs can be run from a bat file or from inside the Eclipse IDE. The java library path variable must be set to include the directory the jacob.dll is in. The simplest way to do that is to add it as a command line option. Last Modified 10/2005