Re: problem compiling the jdbc driver

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Silky Mittal <silky212001(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: problem compiling the jdbc driver
Date: 2001-03-22 14:18:58
Message-ID: 985270738.3aba09d2e33e8@webmail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Quoting Silky Mittal <silky212001(at)yahoo(dot)com>:

>
> Dear Sir,
> i am using postgresql 6.5.3 on red hat 6.2...
> i downloaded j2sdk-1_3_0_02-linux-rpm.bin from
> java.sun.com and stored it in my root directory with
> the same name.
> i have jdbc6.5-1.2.jar and
> jdbc6.5-1.1.jar in /usr/lib/pgsql
> directory.
> i use following code for the driver in my java
> application:
> Class.forName("org.postgresql.Driver")
> it compiles fine but when i give java filename it
> gives the following error:
>
>
> java.lang.ClassNotFoundException:org/postgresql/Driver

Yep. "org.postgresql.Driver" only came in with 7.0. For anything earlier drop
the org. part of the package.

Peter

--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Roberto João Lopes Garcia 2001-03-23 13:03:28 pgmonitor on solaris
Previous Message Seema Noor 2001-03-21 22:47:49 help in postgres & jdbc