pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Getting started with jdbc3 and eclipse
4+ messages / 4 participants
[nested] [flat]

* Getting started with jdbc3 and eclipse
@ 2007-10-17 13:56 Dominik Heller <Dominik.Heller@gmx.net>
  2007-10-17 14:06 ` Re: Getting started with jdbc3 and eclipse Guillaume Cottenceau <gc@mnc.ch>
  2007-10-17 16:10 ` Re: Getting started with jdbc3 and eclipse Michael Schmidt <MichaelMSchmidt@msn.com>
  2007-10-17 21:18 ` Re: Getting started with jdbc3 and eclipse Guy Rouillier <guyr-ml1@burntmail.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Dominik Heller @ 2007-10-17 13:56 UTC (permalink / raw)
  To: pgsql-jdbc

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
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Getting started with jdbc3 and eclipse
  2007-10-17 13:56 Getting started with jdbc3 and eclipse Dominik Heller <Dominik.Heller@gmx.net>
@ 2007-10-17 14:06 ` Guillaume Cottenceau <gc@mnc.ch>
  2 siblings, 0 replies; 4+ messages in thread

From: Guillaume Cottenceau @ 2007-10-17 14:06 UTC (permalink / raw)
  To: Dominik Heller <Dominik.Heller@gmx.net>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Getting started with jdbc3 and eclipse
  2007-10-17 13:56 Getting started with jdbc3 and eclipse Dominik Heller <Dominik.Heller@gmx.net>
@ 2007-10-17 16:10 ` Michael Schmidt <MichaelMSchmidt@msn.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Michael Schmidt @ 2007-10-17 16:10 UTC (permalink / raw)
  To: Dominik Heller <Dominik.Heller@gmx.net>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Getting started with jdbc3 and eclipse
  2007-10-17 13:56 Getting started with jdbc3 and eclipse Dominik Heller <Dominik.Heller@gmx.net>
@ 2007-10-17 21:18 ` Guy Rouillier <guyr-ml1@burntmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Guy Rouillier @ 2007-10-17 21:18 UTC (permalink / raw)
  To: pgsql-jdbc

Dominik Heller wrote:
> java.sql.SQLException: No suitable driver

Add the PG jar file as an external JAR file to your project.

-- 
Guy Rouillier



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2007-10-17 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-10-17 13:56 Getting started with jdbc3 and eclipse Dominik Heller <Dominik.Heller@gmx.net>
2007-10-17 14:06 ` Guillaume Cottenceau <gc@mnc.ch>
2007-10-17 16:10 ` Michael Schmidt <MichaelMSchmidt@msn.com>
2007-10-17 21:18 ` Guy Rouillier <guyr-ml1@burntmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox