From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/installation/build_win_java.html | 129 +++++++++++++++++++++++----------- 1 file changed, 87 insertions(+), 42 deletions(-) (limited to 'docs/installation/build_win_java.html') diff --git a/docs/installation/build_win_java.html b/docs/installation/build_win_java.html index ef2c20c4..8acbc5be 100644 --- a/docs/installation/build_win_java.html +++ b/docs/installation/build_win_java.html @@ -14,7 +14,7 @@ -

Java support is not built automatically. The following instructions -assume that you have installed the Sun Java Development Kit in -d:\java. Of course, if you installed elsewhere or have -different Java software, you will need to adjust the pathnames -accordingly.

+

+ Java support is not built automatically. The following + instructions assume that you have installed the Sun Java + Development Kit in d:\java. Of + course, if you installed elsewhere or have different Java + software, you will need to adjust the pathnames + accordingly. +

    -
  1. Set your include directories. -
    • -In Visual Studio 2005/Visual Studio 2008 - Choose Tools -> Options --> Projects -> VC++ Directories. Under the "Show -directories for" pull-down, select "Include files". Add the full -pathnames for the d:\java\include and -d:\java\include\win32 directories. Then click OK. -
    • -In Visual Studio 2010 - Right-click db_java project, choose Properties->Configuration Properties-> VC++ Directories->Include Directories. -Add the full pathnames for the d:\java\include and d:\java\include\win32 directories. Then click OK. -
    -These are -the directories needed when including jni.h.
  2. -
  3. Set the executable files directories. -
    • -In Visual Studio 2005/Visual Studio 2008 - Choose Tools -> -Options -> Projects -> VC++ Directories. Under the "Show -directories for" pull-down, select "Executable files". Add the full -pathname for the d:\java\bin directory, then click OK. -
    • -In Visual Studio 2010 - Right-click db_java project, choose Properties->Configuration Properties-> VC++ Directories->Executable Directories. Add the full pathnames for the d:\java\bin directories. Then click OK. -
    - -This is the directory needed to find javac.
  4. -
  5. Set the build type to Release or Debug in the drop-down on the -tool bar.
  6. -

    - To build, right-click on db_java and select Build. This builds the - Java support library for Berkeley DB and compiles all the java files, - placing the resulting db.jar and - dbexamples.jar files in one of the following - Berkeley DB subdirectories, depending on the configuration that you chose: -

    + Set your include directories. +
    • + In Visual Studio 2005/Visual Studio + 2008 - Choose Tools -> Options + -> Projects -> VC++ + Directories. Under the "Show + directories for" pull-down, select "Include + files". Add the full pathnames for the + d:\java\include and + d:\java\include\win32 + directories. Then click OK. +
    • + In Visual Studio 2010/Visual Studio 2012 + - Right-click db_java project, choose + Properties->Configuration + Properties-> VC++ + Directories->Include + Directories. Add the full + pathnames for the + d:\java\include and + d:\java\include\win32 + directories. Then click OK. +

    + These are the directories needed when + including jni.h. +

  7. +
  8. + Set the executable files directories. +
    • + In Visual Studio 2005/Visual Studio + 2008 - Choose Tools -> Options + -> Projects -> VC++ + Directories. Under the "Show + directories for" pull-down, select "Executable + files". Add the full pathname for the + d:\java\bin + directory, then click OK. +
    • + In Visual Studio 2010/Visual Studio 2012 + - Right-click db_java project, choose + Properties->Configuration + Properties-> VC++ + Directories->Executable + Directories. Add the full + pathnames for the + d:\java\bin + directories. Then click OK. +
    + This is the directory needed to find + javac. +
  9. +
  10. + Set the build type to Release or Debug in the + drop-down on the tool bar. +
  11. +
  12. + Change the compiling option if you are using + Java 1.7 +
    • + In Visual Studio 2005/Visual Studio + 2008/Visual Studio 2010/Visual Studio 2012 + - Right-click db_java project, choose + Properties->Configuration + Properties-> Custom Build + Step, Remove the option of + "-target 1.5" in the "Command Line". +
  13. +
  14. +

    + To build, right-click on db_java and select + Build. This builds the Java support library for + Berkeley DB and compiles all the java files, + placing the resulting db.jar + and dbexamples.jar files in + one of the following Berkeley DB subdirectories, + depending on the configuration that you chose: +

    -- cgit v1.2.1