From: | Peter T Mount <peter(at)taer(dot)maidstone(dot)gov(dot)uk> |
---|---|
To: | Jeffrey Napolitano <jnapoli(at)setech(dot)com> |
Cc: | Dallas Hockley <hockleyd(at)cybersoft(dot)ab(dot)ca>, Interface to PostgreSQL <pgsql-interfaces(at)postgresql(dot)org>, peter(at)retep(dot)org(dot)uk |
Subject: | Re: [INTERFACES] "static" libraries? |
Date: | 1998-07-21 16:44:01 |
Message-ID: | Pine.LNX.3.96.980721174225.2998K-100000@taer.maidstone.gov.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Tue, 21 Jul 1998, Jeffrey Napolitano wrote:
> And the application (let's say java_app.jar) can be invoked directly by
> name?
>
> i.e.:
>
> /usr/local/bin/java_app.jar
No, that will not work. jar files are simply plain uncompressed zip files,
and are not executable. The way around this is to write a wrapper script,
that invokes java with the jar file.
The jdk utilities including javac and java are done in this way.
> > [email problems within maidstone.gov.uk has delayed this response -
> > peter]
> >
> > On Thu, 16 Jul 1998, Dallas Hockley wrote:
> >
> > > 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....
> >
> > It will work that way.
> >
> > The down side to this is that if a newer version of the driver is
> > released, then you have to rebuild your application jar file.
> >
> > --
> > Peter Mount (at work) peter(at)taer(dot)maidstone(dot)gov(dot)uk or peter(at)maidstone(dot)gov(dot)uk
> > If you mail me here, please cc my home address peter(at)retep(dot)org(dot)uk
> -------------------
> Jeffrey Napolitano
> Lowly Intern
> Software Emancipation Technology
>
--
Peter Mount (at work) peter(at)taer(dot)maidstone(dot)gov(dot)uk or peter(at)maidstone(dot)gov(dot)uk
If you mail me here, please cc my home address peter(at)retep(dot)org(dot)uk
From | Date | Subject | |
---|---|---|---|
Next Message | olivier | 1998-07-21 17:03:58 | |
Previous Message | Stephen Lombardo | 1998-07-21 16:37:56 | Re: [INTERFACES] JDBC JAVA interface |