pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedError in Programmer's Guide: JDBC
4+ messages / 3 participants
[nested] [flat]
* Error in Programmer's Guide: JDBC
@ 2001-01-23 04:44 Jeff Duffy <jduffy@greatbridge.com>
2001-01-23 04:51 ` Re: Error in Programmer's Guide: JDBC Bruce Momjian <pgman@candle.pha.pa.us>
2001-01-23 09:02 ` Re: Error in Programmer's Guide: JDBC Peter T Mount <peter@retep.org.uk>
2001-01-23 09:04 ` Re: Error in Programmer's Guide: JDBC Peter T Mount <peter@retep.org.uk>
0 siblings, 3 replies; 4+ messages in thread
From: Jeff Duffy @ 2001-01-23 04:44 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Error in Programmer's Guide: JDBC
2001-01-23 04:44 Error in Programmer's Guide: JDBC Jeff Duffy <jduffy@greatbridge.com>
@ 2001-01-23 04:51 ` Bruce Momjian <pgman@candle.pha.pa.us>
2 siblings, 0 replies; 4+ messages in thread
From: Bruce Momjian @ 2001-01-23 04:51 UTC (permalink / raw)
To: Jeff Duffy <jduffy@greatbridge.com>; +Cc: pgsql-docs
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Error in Programmer's Guide: JDBC
2001-01-23 04:44 Error in Programmer's Guide: JDBC Jeff Duffy <jduffy@greatbridge.com>
@ 2001-01-23 09:02 ` Peter T Mount <peter@retep.org.uk>
2 siblings, 0 replies; 4+ messages in thread
From: Peter T Mount @ 2001-01-23 09:02 UTC (permalink / raw)
To: Jeff Duffy <jduffy@greatbridge.com>; +Cc: pgsql-docs
Quoting Jeff Duffy <jduffy@greatbridge.com>:
> 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".
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
for 7.1.
Peter
--
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Error in Programmer's Guide: JDBC
2001-01-23 04:44 Error in Programmer's Guide: JDBC Jeff Duffy <jduffy@greatbridge.com>
@ 2001-01-23 09:04 ` Peter T Mount <peter@retep.org.uk>
2 siblings, 0 replies; 4+ messages in thread
From: Peter T Mount @ 2001-01-23 09:04 UTC (permalink / raw)
To: Jeff Duffy <jduffy@greatbridge.com>; +Cc: pgsql-docs
Hmmm, it seems this has already been done (at least before the begining of last
week).
Peter
Quoting Jeff Duffy <jduffy@greatbridge.com>:
> 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
>
>
>
--
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-01-23 09:04 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-23 04:44 Error in Programmer's Guide: JDBC Jeff Duffy <jduffy@greatbridge.com>
2001-01-23 04:51 ` Bruce Momjian <pgman@candle.pha.pa.us>
2001-01-23 09:02 ` Peter T Mount <peter@retep.org.uk>
2001-01-23 09:04 ` Peter T Mount <peter@retep.org.uk>
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