Re: JAVA + JDBC + Postgresql - Mailing list pgsql-jdbc

From Truong Hong Linh
Subject Re: JAVA + JDBC + Postgresql
Date
Msg-id Pine.GSO.4.33.0106201613310.28824-100000@cybill
Whole thread Raw
In response to JAVA + JDBC + Postgresql  ("Moses" <moses@kampsax.dtu.dk>)
List pgsql-jdbc
I think you should do:

setenv CLASSPATH ${CLASSPATH}:/opt/local/pgsql/jdbc/postgresql.jar

Assume that PostgreSQL is installed in /opt/local. And then:

import java.sql.*;

Don't do

import postgresql.

It works with me.

Linh.
----

On Wed, 20 Jun 2001, Moses 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.
> ////////////////////////////////////////////////////////////////////////////
>
>


pgsql-jdbc by date:

Previous
From: "Moses"
Date:
Subject: JAVA + JDBC + Postgresql
Next
From: Martin Algesten
Date:
Subject: Re: JAVA + JDBC + Postgresql