Received: from mailhub.icx.net (mailhub2.icx.net [206.96.250.11]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBT2QuL49904 for ; Thu, 28 Dec 2000 21:26:56 -0500 (EST) (envelope-from desoi@icx.net) Received: from [192.168.1.5] (pm18s.icx.net [216.82.8.130]) by mailhub.icx.net (8.11.1/8.11.1) with ESMTP id eBT2QJh20333; Thu, 28 Dec 2000 21:26:21 -0500 (EST) Mime-Version: 1.0 X-Sender: desoi@mailhub.icx.net (Unverified) Message-Id: In-Reply-To: <92eag6$mjp$1@news.tht.net> References: <92eag6$mjp$1@news.tht.net> Date: Thu, 28 Dec 2000 20:01:29 -0500 To: Wayne Davis , pgsql-interfaces@postgresql.org From: John DeSoi Subject: Re: jdbc Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Archive-Number: 200012/241 X-Sequence-Number: 586 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.(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 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.