pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jeff Duffy <jduffy@greatbridge.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Error in Programmer's Guide: JDBC
Date: Mon, 22 Jan 2001 23:51:30 -0500 (EST)
Message-ID: <200101230451.XAA07298@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0101222343240.13711-100000@cairhien.alanne.com>


You should see the current development docs have this fixed.  Sorry we
didn't go back and fix 7.0 docs.


> Greetings,
> 
>  In the release version of the Programmer's Guide, the chapter on JDBC
> (I used the one at
> http://www.postgresql.org/users-lounge/docs/7.0/programmer/jdbc6424.htm
> )
> has an example of using the class loader to load the Postgres JDBC
> driver that uses the incorrect driver class name:
> 
> Class.forName("postgresql.Driver");
> 
>  This same error is repeated in the example for loading the driver using
> the command line switch:
> 
> % java -Djdbc.drivers=postgresql.Driver example.ImageViewer
> 
>  The correct driver class (at least in the latest release with the filename
> 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
> 
> Class.forName("org.postgresql.Driver");
> 
> and
> 
> % 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".
> 
>  In the future, should we submit SGML diffs?
> 
> Jeff
> 
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (4+ messages)  latest in thread

Message-ID: <200101230451.XAA07298@candle.pha.pa.us>
Permalink:  ../200101230451.XAA07298@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200101230451.XAA07298@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: pgman@candle.pha.pa.us, jduffy@greatbridge.com
  Subject: Re: Error in Programmer's Guide: JDBC
  In-Reply-To: <200101230451.XAA07298@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox