Re: JAVA + JDBC + Postgresql

From: Martin Algesten <martin(at)taglab(dot)com>
To: Moses <moses(at)kampsax(dot)dtu(dot)dk>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JAVA + JDBC + Postgresql
Date: 2001-06-20 14:23:21
Message-ID: B7567069.896%martin@taglab.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Your classpath must be wrong. There is no need to do an ³import
postgresql.whatever...² for doing ŒClass.forName(²org.postgresql.Driver²)¹
<- Fully qualified class name, needs no import.

M

On 20/6/01 15:13, "Moses" <moses(at)kampsax(dot)dtu(dot)dk> wrote:

> Hi all
> I need your help
>
> I did try to use the postgresql.jar (jar tf ):
>
> import postgresql.fastpath;
>
> but the package does not exist.
>
> private void connectToDataBase(String User, String Password, String Url)
> {
> Statement stmt;
> try
> {
> // Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
> // Class.forName ("imaginary.sql.iMsqlDriver");
> Class.forName("org.postgresql.Driver");
> Does postgresql has this driver? what do I need?
>
> I'm looking forward to have your help.
>
>
> Best Regards,
> Moses (Mussie)
> ////////////////////////////////////////////////////////////////////////////
> YOUR BRAIN IS HUNGRY
> Wireless COM Technology, News, and Opinion.
> ////////////////////////////////////////////////////////////////////////////
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mathew Hreljac 2001-06-20 14:37:20 Re: No suitable driver
Previous Message Truong Hong Linh 2001-06-20 14:18:05 Re: JAVA + JDBC + Postgresql