From: | Guillaume Cottenceau <gc(at)mnc(dot)ch> |
---|---|
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 14:06:14 |
Message-ID: | 87y7e1sund.fsf@mnc.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Schmidt | 2007-10-17 16:10:50 | Re: Getting started with jdbc3 and eclipse |
Previous Message | Dominik Heller | 2007-10-17 13:56:58 | Getting started with jdbc3 and eclipse |