Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A8D009FBCFF for ; Wed, 17 Oct 2007 11:06:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 50617-07 for ; Wed, 17 Oct 2007 11:06:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.mnc.ch (62-2-77-205.static.cablecom.ch [62.2.77.205]) by postgresql.org (Postfix) with ESMTP id CFC5A9FBC71 for ; Wed, 17 Oct 2007 11:06:18 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id BF217A82D7; Wed, 17 Oct 2007 16:06:33 +0200 (CEST) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 20538-08; Wed, 17 Oct 2007 16:06:32 +0200 (CEST) Received: from meuh.localdomain (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id DDF60A82A5; Wed, 17 Oct 2007 16:06:32 +0200 (CEST) Received: by meuh.localdomain (Postfix, from userid 1000) id F37D2183724; Wed, 17 Oct 2007 16:06:14 +0200 (CEST) To: "Dominik Heller" Cc: pgsql-jdbc@postgresql.org Subject: Re: Getting started with jdbc3 and eclipse References: <20071017135658.306680@gmx.net> From: Guillaume Cottenceau X-Hashcash: 1:20:071017:dominik.heller@gmx.net::hJdPlYbQYy/Sf66s:00000000000000000000000000000000000000000UH X-Hashcash: 1:20:071017:pgsql-jdbc@postgresql.org::1io2XIozrn3D+V/L:0000000000000000000000000000000000002puL Date: Wed, 17 Oct 2007 16:06:14 +0200 In-Reply-To: <20071017135658.306680@gmx.net> (Dominik Heller's message of "Wed\, 17 Oct 2007 15\:56\:58 +0200") Message-ID: <87y7e1sund.fsf@mnc.ch> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/86 X-Sequence-Number: 17658 "Dominik Heller" writes: > Hi All, > I am about to get started with postgresql 8.2 and eclipse. the installation of the postgres DB was successful and now my problem is how to find the driver in eclipse. I have set the classpath correctly and I also added the library to the eclipse project (although I know the is not even neccessary). > > So now by trying to establish a connection with the following code: > > Class.forName("org.postgresql.Driver"); > db = DriverManager.getConnection("localhost:5432", "postgres", "*****"); > > I get this exception: > > java.sql.SQLException: No suitable driver http://www.google.com/search?q=jdbc+postgresql+No+suitable+driver -- Guillaume Cottenceau, MNC Mobile News Channel SA, an Alcatel-Lucent Company Av. de la Gare 10, 1003 Lausanne, Switzerland - direct +41 21 317 50 36