Re: [INTERFACES] JDBC Connection Problem - Mailing list pgsql-jdbc

From Peter T Mount
Subject Re: [INTERFACES] JDBC Connection Problem
Date
Msg-id 980929827.3a77cd231bd59@webmail.retep.org.uk
Whole thread Raw
List pgsql-jdbc
Quoting v j <jvs_a@yahoo.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@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 Mount
Date:
Subject: Re: Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems
Next
From: Philip Crotwell
Date:
Subject: PreparedStatement suggestion