Re: Connect via odbc from Windows to Linux

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: brucejhyatt(at)yahoo(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org, John R Pierce <pierce(at)hogranch(dot)com>
Subject: Re: Connect via odbc from Windows to Linux
Date: 2008-12-02 21:37:27
Message-ID: 4935AA97.1080502@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ken Boss 2008-12-02 21:53:21 text type handling
Previous Message Bruce Hyatt 2008-12-02 21:33:31 Re: Connect via odbc from Windows to Linux