Re: [INTERFACES] "static" libraries? - Mailing list pgsql-interfaces

From Dallas Hockley
Subject Re: [INTERFACES] "static" libraries?
Date
Msg-id 35AE4540.BB5C6407@cybersoft.ab.ca
Whole thread Raw
In response to "static" libraries?  (Jeffrey Napolitano <jnapoli@setech.com>)
Responses Re: [INTERFACES] "static" libraries?  (Peter T Mount <peter@taer.maidstone.gov.uk>)
List pgsql-interfaces
Jeffrey Napolitano wrote:
>
> I have a Java application which uses JDBC, and it is going to put on a
> few different machines using postgres and postgres's JDBC driver.  My
> question is this:  Is there a method of *including* the JDBC driver into
> the Java application?  An equivalent to statically linking a library in


This can be done by "unjarring" the postgresql jdbc driver jar in the
base class directory of your app/let and then jar'ring the entire
distribution into one file.  The relative class resolution must be
correct, and it will work....

Good Luck.

Dallas

Dallas Hockley
hockleyd@cybersoft.ab.ca

pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [DOCS] Re: [INTERFACES] libpq & user
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [INTERFACES] Re: [HACKERS] changes in 6.4