Re: Getting started with jdbc3 and eclipse - Mailing list pgsql-jdbc

From Guillaume Cottenceau
Subject Re: Getting started with jdbc3 and eclipse
Date
Msg-id 87y7e1sund.fsf@mnc.ch
Whole thread Raw
In response to Getting started with jdbc3 and eclipse  ("Dominik Heller" <Dominik.Heller@gmx.net>)
List pgsql-jdbc
"Dominik Heller" <Dominik.Heller 'at' gmx.net> 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
myproblem is how to find the driver in eclipse. I have set the classpath correctly and I also added the library to the
eclipseproject (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

pgsql-jdbc by date:

Previous
From: "Dominik Heller"
Date:
Subject: Getting started with jdbc3 and eclipse
Next
From: Michael Schmidt
Date:
Subject: Re: Getting started with jdbc3 and eclipse