Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8D8019FBC2A for ; Wed, 17 Oct 2007 13:10:57 -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 25320-05-6 for ; Wed, 17 Oct 2007 13:10:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from bay0-omc1-s14.bay0.hotmail.com (bay0-omc1-s14.bay0.hotmail.com [65.54.246.86]) by postgresql.org (Postfix) with ESMTP id 50C229FBC8E for ; Wed, 17 Oct 2007 13:10:51 -0300 (ADT) Received: from BAYC1-PASMTP06 ([65.54.191.166]) by bay0-omc1-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Oct 2007 09:10:50 -0700 X-Originating-IP: [71.221.114.243] X-Originating-Email: [michaelmschmidt@msn.com] Message-ID: Received: from [127.0.0.1] ([71.221.114.243]) by BAYC1-PASMTP06.CEZ.ICE over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2668); Wed, 17 Oct 2007 09:12:23 -0700 Date: Wed, 17 Oct 2007 10:10:50 -0600 From: Michael Schmidt Reply-To: MichaelMSchmidt@msn.com User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Dominik Heller CC: pgsql-jdbc@postgresql.org Subject: Re: Getting started with jdbc3 and eclipse References: <20071017135658.306680@gmx.net> In-Reply-To: <20071017135658.306680@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Oct 2007 16:12:24.0187 (UTC) FILETIME=[80EA2CB0:01C810D8] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/87 X-Sequence-Number: 17659 Dominik Heller wrote: > 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 The Komo project is an Eclipse application that can be used as a foundation for a PostgreSQL interface. It uses dynamic loading of the jdbc driver and has a connection manager class that handles the database connection. You can download it at pgFoundry and look at the source code. Michael Schmidt