Here is a thought.

Even if your CLASSPATH is correct, unless you pass this information into
the program:

java -Djdbc.drivers=postgresql.Driver myclass

-or- 

Class.forName("postresql.Driver");

{in the program}

you'll get that error.

Chris



Andreas Jerke wrote:
> 
> Hello Postgres User,
> 
> I can not get a DataBase Connection over JDBC.
> I have configured the pg_hba.conf (host all 127.0.0.1 255.255.255.255 trust), so
> that all local processes like Jserv are able to connect to the DB over TCP/IP.
> I have installed the latest JDBC driver  and JAVA finds the
> class postgresql.Driver. But when I try to connect to the DB, I allways get:
> 
> SQLExeption: No suitable driver
> SQLSTate: 08001
> VendorError: 0
> 
> mmhhh. Perhaps my postgres is not supported bei JDBC ?
> 
> My System:
> 
> SuSE 6.3
> JDK 1.1.7
> JDBC: jdbc6.5-1.1.jar ---> does this mean: postgres 6.5.X and jdk 1.1.X ??
> Postgres: postgresql-6.5.3.tar.gz
> 
> I read serveral FAQ's but could not
> fix my problem.
> 
> thanks for reading,
> 
> Andreas
> 
> 

-- 
Christopher D. Gokey, Raytheon ITSS, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED] / http://gcmd.nasa.gov

Reply via email to