Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 16EE79FBBE4 for ; Wed, 17 Oct 2007 10:57:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 93987-04 for ; Wed, 17 Oct 2007 10:56:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id A3C2C9FB9C8 for ; Wed, 17 Oct 2007 10:57:00 -0300 (ADT) Received: (qmail 24138 invoked by uid 0); 17 Oct 2007 13:56:58 -0000 Received: from 217.24.207.26 by www155.gmx.net with HTTP; Wed, 17 Oct 2007 15:56:57 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 17 Oct 2007 15:56:58 +0200 From: "Dominik Heller" Message-ID: <20071017135658.306680@gmx.net> MIME-Version: 1.0 Subject: Getting started with jdbc3 and eclipse To: pgsql-jdbc@postgresql.org X-Authenticated: #17310750 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX19RK4UmXN9Rt4UKGi4y/tI5/l8BMT4FAmbftSwMCb eS/erQJmb1NmE25D6nx9q4OWFhc1u0Sb6ndw== Content-Transfer-Encoding: 8bit X-GMX-UID: nSwgdv5EYmYBASgTbXY3AzxCWkZTQZRm X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.882 tagged_above=0 required=5 tests=AWL=0.881, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200710/85 X-Sequence-Number: 17657 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 at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.seitenbau.test.testDB.(testDB.java:12) at com.seitenbau.test.App.main(App.java:14) So I am using jdk 1.5_12 and the postgresql-8.2-506.jdbc3.jar Does someone has any idea? THX in advance -Dominik -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer