Skip site navigation (1) Skip section navigation (2)

Error in Programmer's Guide: JDBC

From: Jeff Duffy <jduffy(at)greatbridge(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Error in Programmer's Guide: JDBC
Date: 2001-01-23 04:44:21
Message-ID: (view raw or whole thread)
Lists: pgsql-docs

 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 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 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".

 In the future, should we submit SGML diffs?



pgsql-docs by date

Next:From: Bruce MomjianDate: 2001-01-23 04:51:30
Subject: Re: Error in Programmer's Guide: JDBC
Previous:From: Paul SkinnerDate: 2001-01-23 02:58:47
Subject: Text Type

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group