From 671be61916e7438c9d7ed46a3d14e15c195bb02f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 11 Mar 2001 11:07:01 +0000 Subject: Add uninstall target to Java build. Respect default port setting in JDBC driver. Pick up version number from Makefile.global. Change installation directory to share/java/. Document. --- doc/src/sgml/jdbc.sgml | 83 +++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/jdbc.sgml b/doc/src/sgml/jdbc.sgml index cf7b159dcff..0d02c039672 100644 --- a/doc/src/sgml/jdbc.sgml +++ b/doc/src/sgml/jdbc.sgml @@ -1,5 +1,5 @@ @@ -53,55 +53,49 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.19 2001/02/24 12:40:27 Starting with PostgreSQL version 7.1, - the preferred way to build the JDBC driver is - using Ant, a special tool for building + the JDBC driver is built using + Ant, a special tool for building Java-based packages. You should download - Ant from the Ant - web site and install it before proceeding. - - - - The build the driver, issue the command - -$ ant - - in the top level directory of the - PostgreSQL source distribution. - - - - To install the driver, enter the command - -$ ant -Dinstall.directory=mydir install - - Replace mydir with a directory name of - your choice; the directory will be created if necessary. The - PostgreSQL JDBC - driver consists of a postgresql.jar file that - will be copied to that directory. + Ant from the Ant + web site and install it before proceeding. Precompiled + Ant distributions are typically set up + to read a file .antrc in the current user's + home directory for configuration. For example, to use a different + JDK than the default, this may work: + +JAVA_HOME=/usr/local/sun-jdk1.3 +JAVACMD=$JAVA_HOME/bin/java + - Alternatively, you can use the old make-based - interface. The driver's source is located in the src/interfaces/jdbc directory of the - source tree. To compile, simply change directory to that - directory, and type: + The build the driver, add the option to your + configure command line, e.g., -$ gmake +$ ./configure --prefix=xxx --with-java ... - (Remember to use GNU make.) Upon completion, - you will find the archive postgresql.jar in - the current directory. This is the JDBC driver, - which you can copy to an appropriate directory in your system. + This will build and install the driver along with the rest of the + PostgreSQL package when you issue the + gmake and gmake install + commands. If you only want to build the driver and not the rest + of PostgreSQL, change into the + directory src/interfaces/jdbc and issue the + respective make command there. Refer to the + PostgreSQL installation instructions + for more information about the configuration and build process. - You must not use javac directly, as the - driver uses some dynamic loading techniques for performance - reasons, and javac cannot cope. + Do not try to build by calling javac directly, + as the driver uses some dynamic loading techniques for + performance reasons, and javac cannot cope. + Do not try to run ant directly either, because + some configuration information is communicated through the + makefiles. Running ant directly without + providing these parameters will result in a broken driver. @@ -114,7 +108,12 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.19 2001/02/24 12:40:27 postgresql.jar needs to be included in the class path, either by putting it in the CLASSPATH environment variable, or by using flags on the - java command line. + java command line. By default, the jar archive + is installed in the directory /usr/local/pgsql/share/java. You may + have it in a different directory if you used the + option when you ran + configure. @@ -128,7 +127,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.19 2001/02/24 12:40:27 /usr/local/jdk1.1.6. To run the application, I would use: -export CLASSPATH=/usr/local/lib/finder.jar:/usr/local/lib/postgresql.jar:. +export CLASSPATH=/usr/local/lib/finder.jar:/usr/local/pgsql/share/java/postgresql.jar:. java uk.org.retep.finder.Main -- cgit v1.2.3