Re: [GENERAL] jdbc question - Mailing list pgsql-general

From Albert Loo
Subject Re: [GENERAL] jdbc question
Date
Msg-id 20000119213613.68319.qmail@hotmail.com
Whole thread Raw
List pgsql-general
From: mr_hopkins@earthlink.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


pgsql-general by date:

Previous
From: "Cristian Stuardo I."
Date:
Subject: alter question
Next
From: mikeo
Date:
Subject: sharing tables between databases