From: | Marko Kreen <marko(at)l-t(dot)ee> |
---|---|
To: | Peter Mount <peter(at)retep(dot)org(dot)uk> |
Cc: | Joseph Shraibman <jks(at)selectacast(dot)net>, Justin Jaynes <justinjaynes(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Using the JDBC Driver in version 7.02 |
Date: | 2000-07-11 11:58:45 |
Message-ID: | 20000711135845.A17012@l-t.ee |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Jul 11, 2000 at 12:05:29AM +0100, Peter Mount wrote:
>
> ----- Original Message -----
> From: Joseph Shraibman <jks(at)selectacast(dot)net>
> To: Justin Jaynes <justinjaynes(at)hotmail(dot)com>
> Cc: <pgsql-general(at)postgresql(dot)org>
> Sent: Monday, July 10, 2000 9:57 PM
> Subject: Re: [GENERAL] Using the JDBC Driver in version 7.02
>
> > Justin Jaynes wrote:
> > >
> > > the line:
> > >
> > > Class.forName("org.postgresql.Driver");
Try:
Class.forName("postgresql.Driver");
Ofcource, check that postgresql.jar is in classpath. If Java >= 1.2,
you can instead drop it in $JAVA_HOME/jre/lib/ext.
> > >
> > > I get an error that the DriverManager cannot find a suitable driver.
> > >
> > > The code I use to connect goes as follows:
> > >
> > > Connection chamber = DriverManager.getConnection("localhost:5432");
>
> This isn't a valid JDBC URL. You'll need something like:
>
> jdbc:postgresql:database <= Use when on local host
> jdbc:postgresql://server/database <= Use when on remote host
>
--
marko
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Warner | 2000-07-11 12:03:53 | Re: Hints about how to debug pg_dump problem? |
Previous Message | Bob Kline | 2000-07-11 11:53:33 | Re: Re: Link to postgesql components |