Re: I can't connect - Mailing list pgsql-jdbc

From Peter T Mount
Subject Re: I can't connect
Date
Msg-id 985272568.3aba10f815949@webmail.retep.org.uk
Whole thread Raw
In response to I can't connect  (Bart <bart@alator.kotnet.org>)
List pgsql-jdbc
Quoting Bart <bart@alator.kotnet.org>:

> Hi,
>
> I installed debian 2.2r2 with _all_ the postgres-packages,  I created a
> database and via psql I can do whatever I want with the DB. Now I'm
> trying to make a connection via a Java-program. I downloaded the
> jdbc-6.5-1.2.jar file and renamed it to jdbc.jar and moved it to
> ~/jdk1.3/lib, set the CLASSPATH to ~/jdk1.3/lib and used a program,
> found in the Deitel&Deitel Java book.

It can be put anywhere, not just ~/jdk1.3/lib...

> After that, I tried to make a connection to the database I created
> (testing) and I keep getting error-messages.
>
> Can someone help me with this? I'm trying for 3 days now and still no
> luck.

[snip]
>         String url = "jdbc:odbc:testing";   // I also tried with
<String url =
> "jdbc:postgres:testing";>

"jdbc:postgresql:testing"

>         String username = "postgres";
>         String password = "notentered";
>             Class.forName("jdbc.Driver");

Class.forName("org.postgresql.Driver");

Peter

--
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

pgsql-jdbc by date:

Previous
From: Peter T Mount
Date:
Subject: Re: patches for jdbc1 (fwd)
Next
From: "Philip Yue"
Date:
Subject: RE: Lost in unicode?