Re: Getting started with jdbc3 and eclipse

From: Michael Schmidt <MichaelMSchmidt(at)msn(dot)com>
To: Dominik Heller <Dominik(dot)Heller(at)gmx(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Getting started with jdbc3 and eclipse
Date: 2007-10-17 16:10:50
Message-ID: BAYC1-PASMTP06E42D8DF62C0EA32180C2A39D0@CEZ.ICE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.<init>(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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guy Rouillier 2007-10-17 21:18:25 Re: Getting started with jdbc3 and eclipse
Previous Message Guillaume Cottenceau 2007-10-17 14:06:14 Re: Getting started with jdbc3 and eclipse