Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group