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

Re: JDBC Connection Problem

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: v j <jvs_a(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC Connection Problem
Date: 2001-01-31 08:30:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-jdbc
Quoting v j <jvs_a(at)yahoo(dot)com>:

redirected to the jdbc list:

> Dear Sir,
> I try to run the Java Program by using JDBC
> PostgreSql. It can run under
> only
> /usr/local/pgsql/src/src/interfaces/jdbc  but it can't
> run under other directories ... 

Yes it can, as long as you put it into your CLASSPATH.

ie, when built, you should find a file called postgresql.jar (named differently 
if you download from the websites).

Say you copy it into say, /usr/local/lib. Then add the jar file to the 
classpath, ie:


Then when your application loads the driver, it will get it from that location.


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

In response to

pgsql-interfaces by date

Next:From: v jDate: 2001-02-01 13:16:10
Subject: JDBC APPLET Problem
Previous:From: v jDate: 2001-01-31 05:09:47
Subject: JDBC Connection Problem

pgsql-jdbc by date

Next:From: Philip CrotwellDate: 2001-01-31 16:35:58
Subject: PreparedStatement suggestion
Previous:From: v jDate: 2001-01-31 05:09:47
Subject: JDBC Connection Problem

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