
This section describes the steps you need to take before you can write or run programs that use the interface.
Precompiled versions of the driver can be downloaded from the PostgreSQL™ web site.
Alternatively you can build the driver from source, but you should only need to do this if you are making changes to the source code. To build the driver, you need Ant or higher and a . Ant is a special tool for building Java-based packages. It can be downloaded from the Ant web site.
If you have several Java compilers installed, it depends on the Ant configuration which one gets used. Precompiled Ant distributions are typically set up to read a file in the current user's home directory for configuration. For example, to use a different than the default, this may work:
JAVA_HOME=/usr/local/sun-jdk JAVACMD=$JAVA_HOME/bin/javaTo compile the driver simply run ant in the top level directory. The compiled driver will be placed in . The resulting driver will be built for the version of Java you are running. If you build with a or you will build a version that supports the 2 specification, and finally if you build with a or you will build a version that supports the 3 specification.
-