Windows port installer

Lists: pgsql-jdbc
From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: <pgsql-jdbc(at)postgresql(dot)org>
Cc: <pginstaller-devel(at)pgfoundry(dot)org>
Subject: Windows port installer
Date: 2004-07-13 14:17:40
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E40C399A@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hi,

I'm currently working on the installer for the binary distribution of
the Win32 port of PostgreSQL. We are already including psqlODBC and
Npgsql, and would like to include the JDBC driver as well. Knowing
nothing about JDBC I'm at a bit of a loss however and would appreciate
some guidance on what files to install, and where, as well as any
changes to the environment or registry etc. that may be required.

TIA,

Regards, Dave

[Oh, and please CC me as I'm not on the JDBC list].


From: "Chris Smith" <cdsmith(at)twu(dot)net>
To: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>, <pgsql-jdbc(at)postgresql(dot)org>
Cc: <pginstaller-devel(at)pgfoundry(dot)org>
Subject: Re: Windows port installer
Date: 2004-07-13 14:37:39
Message-ID: 01e301c468e6$f348fc70$6f00000a@KYA
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Dave Page wrote:
> I'm currently working on the installer for the binary distribution of
> the Win32 port of PostgreSQL. We are already including psqlODBC and
> Npgsql, and would like to include the JDBC driver as well. Knowing
> nothing about JDBC I'm at a bit of a loss however and would appreciate
> some guidance on what files to install, and where, as well as any
> changes to the environment or registry etc. that may be required.

Here's an opinion from someone who's not really a JDBC driver developer at
all.

There's not really a location to install JDBC drivers onto an operating
system. They are not native libraries, and are typically packaged with
applications. The closest thing you could do to an installation would be to
locate JVM install directories via "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java
Runtime Environment/*/JavaHome", and drop the JAR file into lib/ext relative
to that directory; but frankly I'd probably resent your doing so and certainly
wouldn't find it very useful.

If you need to give lip service to including JDBC drivers for political
reasons, then the best approach is probably to just leave the JDBC driver JAR
file somewhere, and provide documentation on how to find it.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Windows port installer
Date: 2004-07-13 18:36:33
Message-ID: 20040713193633.A16863@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc


On 13/07/2004 15:37 Chris Smith wrote:
> [snip]
> There's not really a location to install JDBC drivers onto an operating
> system. They are not native libraries, and are typically packaged with
> applications. The closest thing you could do to an installation would be
> to
> locate JVM install directories via
> "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java
> Runtime Environment/*/JavaHome", and drop the JAR file into lib/ext
> relative
> to that directory;

Which should totally screw up anyone using Tomcat (and probably a lot of
other apps that use custom class loaders).

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+