From: | fernando(at)lozano(dot)eti(dot)br |
---|---|
To: | Dave Coventry <dgcoventry(at)gmail(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Java Postgres drivers. |
Date: | 2009-12-28 11:47:53 |
Message-ID: | 4b389ae9.34d.1d5b.1613460098@lozano.eti.br |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dave,
It looks like the postgresql.jar archive is not in your CLASSPATH.
[]s, Fernando Lozano
> I'm not sure this is the right place to enquire...
>
> I'm trying to connect to a postgres datanbase with Java.
>
> import java.sql.*;
>
> public static void main(String[] args) {
> // TODO code application logic here
> try{
> System.out.println("Starting...");
> Class.forName("org.postgresql.Driver");
> String url="jdbc:postgresql:inenergy";
> System.out.println("Got here...");
>
> catch(Exception e){
> System.out.println("Error..."+e.getMessage());
>
> }
> }
>
> Just don't get to the 'Got here...' statement.
>
> Can anyone see what I'm doing wrong?
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-12-28 15:19:37 | Re: Why grantor is owner in this case? |
Previous Message | Ivano Luberti | 2009-12-28 11:42:35 | Re: Java Postgres drivers. |