Building the Java API with Visual Studio

The Berkeley DB XML Java API is not built automatically. To build the Java API you must set the executable, include, and library paths of the Java directory, and explicitly build the Visual Studio projects db_java and dbxml_java.

  1. For both Visual Studio projects db_java and dbxml_java, right click the project and choose Properties -> Configuration Properties -> VC++ Directories. Select "Include Directories", and the full pathnames for the java/include and java/include/win32 directories. Then select "Executable Directories", and add the full pathname for the java/bin directory. Finally select "Library Directories", and add the full pathnames for the java/lib directory.

  2. Set the build type to Release or Debug (or other appropriate configuration) in the drop-down on the tool bar.

  3. Right-click on db_java and select Build. This builds the Java support library for Berkeley DB, which is required for Berkeley DB XML, and compiles all the java files, placing the resulting db.jar and dbexamples.jar files in jar.

  4. Right-click on dbxml_java and select Build. This builds the Java support library for Berkeley DB XML, and compiles all the java files, placing the resulting dbxml.jar and dbxmlexamples.jar files in jar.