Re: Connect via odbc from Windows to Linux - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Connect via odbc from Windows to Linux
Date
Msg-id 4935AA97.1080502@opencloud.com
Whole thread Raw
In response to Re: Connect via odbc from Windows to Linux  (Bruce Hyatt <brucejhyatt@yahoo.com>)
Responses Re: Connect via odbc from Windows to Linux  (Bruce Hyatt <brucejhyatt@yahoo.com>)
List pgsql-jdbc
Bruce Hyatt wrote:

>         try {
>             // call to Class.forName no longer necessary
>             Class.forName("org.postgresql.Driver");

>         } catch (Exception e) {
>             System.out.println("Error: " + e.toString()
>                 + e.getMessage());
>         }

> This returns "Error: java.lang.ClassNotFoundException: org.postgresql.Driverorg.postgresql.Driver" when run.

Ok then, it's just your error printing code that's doubling up the class
name then.

You don't have the driver in your classpath.

-O

pgsql-jdbc by date:

Previous
From: Bruce Hyatt
Date:
Subject: Re: Connect via odbc from Windows to Linux
Next
From: "Ken Boss"
Date:
Subject: text type handling