From: | Peter Mount <petermount(at)maidstone(dot)gov(dot)uk> |
---|---|
To: | "'tony'" <tony(at)uickarate(dot)com>, pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | RE: JDBC Problem |
Date: | 2000-11-16 16:14:12 |
Message-ID: | 1B3D5E532D18D311861A00600865478CF1B55A@exchange1.nt.maidstone.gov.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
What version of the driver are you using?
Versions 6.5.x and earlier used postgresql.Driver but 7.0 onwards uses
org.postgresql.Driver
Peter
--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)maidstone(dot)gov(dot)uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council
-----Original Message-----
From: tony [mailto:tony(at)uickarate(dot)com]
Sent: Thursday, November 16, 2000 2:55 PM
To: pgsql-interfaces
Subject: [INTERFACES] JDBC Problem
I have a problem with loading the JDBC Driver.
So far, my java code does nothing but to load the driver, and
it gives SQLException with message "No suitable driver".
I made the postgresql.jar with
>make jdbc2
(because I am using jdk1.3)
and I used
>jar tf postgresql.jar
to make sure that the driver was included.
(postgresql/Driver.class)
My CLASSPATH is following:
:/usr/local/lib/postgresql.jar:/usr/local/jdk1.3/bin/:/home/tony/classes/
I am trying to load the driver by doing
>Class.forName("postgresql.Driver");
This is under linux platform. Please let me know what could be
wrong if you see anything wrong.
Thanks!
From | Date | Subject | |
---|---|---|---|
Next Message | tony | 2000-11-16 16:23:03 | JDBC prob. Continued |
Previous Message | Michael Stephenson | 2000-11-16 16:12:03 | Re: JDBC Problem |