pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <desoi@icx.net>
To: Wayne Davis <wfdavis@seas.upenn.edu>
To: pgsql-interfaces@postgresql.org
Subject: Re: jdbc
Date: Thu, 28 Dec 2000 20:01:29 -0500
Message-ID: <v04205507b67191d8f1ca@[216.82.6.85]> (raw)
In-Reply-To: <92eag6$mjp$1@news.tht.net>
References: <92eag6$mjp$1@news.tht.net>

At 10:01 PM -0500 12/27/00, Wayne Davis wrote:
>I'm having trouble getting the postgresql jdbc driver to work. 
>Here's my error:
>java.sql.SQLException: No suitable driver
>        at java.sql.DriverManager.getConnection(DriverManager.java, 
>Compiled Code)
>        at java.sql.DriverManager.getConnection(DriverManager.java, 
>Compiled Code)
>        at DBBean.<init>(DBBean.java, Compiled Code)
>        at DBBean.main(DBBean.java, Compiled Code)


Maybe you had the same naming issue I found (see below).

John DeSoi, Ph.D.


-------
X-From_: desoi@icx.net  Wed Dec 20 10:57:45 2000
X-Sender: desoi@mailhub.icx.net (Unverified)
Date: Wed, 20 Dec 2000 10:55:39 -0500
To: peter@retep.org.uk
From: John DeSoi <desoi@icx.net>
Subject: JDBC documentation error

Hi Peter,


I'm just getting started with postgres and JDBC. I wanted to mention 
a documentation error that might cause considerable pain for other 
newbies like me :)

You have:

In the first method, your code implicitly loads the driver using the 
Class.forName() method. For Postgres, you would use:

Class.forName("postgresql.Driver");


In using this, my application kept crashing (of course it should have 
given me an error message, but for some reason it just crashed). I 
finally got things working by changing it to

Class.forName("org.postgresql.Driver");

Thanks for all your work,

John DeSoi, Ph.D.




view thread (13+ messages)  latest in thread

Message-ID: <v04205507b67191d8f1ca@[216.82.6.85]>
Permalink:  ../v04205507b67191d8f1ca@%5B216.82.6.85%5D/
Also on:    postgresql.org/message-id/v04205507b67191d8f1ca@[216.82.6.85]

 · 

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-interfaces@postgresql.org
  Cc: desoi@icx.net, wfdavis@seas.upenn.edu
  Subject: Re: jdbc
  In-Reply-To: <v04205507b67191d8f1ca@[216.82.6.85]>

* 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