From: | "Albert Loo" <albertsql(at)hotmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] jdbc question |
Date: | 2000-01-20 05:36:13 |
Message-ID: | 20000119213613.68319.qmail@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
From: mr_hopkins(at)earthlink(dot)net (Micheal H.)
>Here's the code.....It compiles but never gets past "Failed to load
>postgresql driver"
your classpath setting might be wrong, it must includes the jar filename as
well, such as :
CLASSPATH = /usr/local/lib/postgresql.jar
you might also want to try :
//String url = "jdbc:postgresql://gina/testdb";
String url = "jdbc:postgresql://127.0.0.1:5432/testdb";
....
//Connection con = DriverManager.getConnection(url, "", "");
Connection con = DriverManager.getConnection( url, "yourname", "");
hope that helps
albert
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
From | Date | Subject | |
---|---|---|---|
Next Message | Eric van der Vlist | 2000-01-20 07:35:11 | Re: [GENERAL] apache logs to pgsql |
Previous Message | Ed Loehr | 2000-01-20 05:02:24 | Re: [GENERAL] weird sum() results |