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

Re: Error in Programmer's Guide: JDBC

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Jeff Duffy <jduffy(at)greatbridge(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Error in Programmer's Guide: JDBC
Date: 2001-01-23 09:04:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Hmmm, it seems this has already been done (at least before the begining of last 


Quoting Jeff Duffy <jduffy(at)greatbridge(dot)com>:

> Greetings,
>  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:
> 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
> 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(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver:
RetepPDF PDF library for Java:

In response to

pgsql-docs by date

Next:From: Oliver ElphickDate: 2001-01-23 17:51:14
Subject: [HACKERS] WAL documentation
Previous:From: Peter T MountDate: 2001-01-23 09:02:37
Subject: Re: Error in Programmer's Guide: JDBC

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