Quoting Jeff Duffy <jduffy(at)greatbridge(dot)com>:
> In the release version of the Programmer's Guide, the chapter on JDBC
> (I used the one at
> has an example of using the class loader to load the Postgres JDBC
> driver that uses the incorrect driver class name:
> This same error is repeated in the example for loading the driver
> the command line switch:
> % java -Djdbc.drivers=postgresql.Driver example.ImageViewer
> The correct driver class (at least in the latest release with the
> jdbc7.0-1.2.jar, obtained from Peter Mount's site at
> http://www.retep.org.uk/postgres/download.html) should be
> org.postgresql.Driver, thus changing the docs to read
> % java -Djdbc.drivers=org.postgresql.Driver example.ImageViewer
> Following the docs will cause the code to throw an exception with the
> message "java.lang.NoClassDefFoundError: postgresql.Driver".
I'll fix that one shortly (doing another commit this morning anyhow).
> In the future, should we submit SGML diffs?
For the docs that might be an idea.
PS: After 7.1, I'm thinking of rewriting the docs as the current jdbc docs are
not that accurate to 7.1. Anyhow my main priority is to get the driver working
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
In response to
pgsql-docs by date
|Next:||From: Peter T Mount||Date: 2001-01-23 09:04:36|
|Subject: Re: Error in Programmer's Guide: JDBC|
|Previous:||From: Bruce Momjian||Date: 2001-01-23 04:53:09|
|Subject: Re: RE: SSL Connections [doc PATCH]|