Skip site navigation (1) Skip section navigation (2)

Re: I can't connect

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Bart <bart(at)alator(dot)kotnet(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: I can't connect
Date: 2001-03-22 14:49:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Quoting Bart <bart(at)alator(dot)kotnet(dot)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.

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


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



Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver:
RetepPDF PDF library for Java:

In response to

pgsql-jdbc by date

Next:From: Wiley, PeterDate: 2001-03-22 15:18:11
Subject: RE: I can't connect
Previous:From: Peter T MountDate: 2001-03-22 14:17:18
Subject: Re: patches for jdbc1 (fwd)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group