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: 980929827.3a77cd231bd59@webmail.retep.org.uk (view raw or flat)
Thread:
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:

CLASSPATH=/usr/local/lib/postgresql.jar:$CLASSPATH

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

Peter

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

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-2014 The PostgreSQL Global Development Group