From: Peter T Mount <peter@retep.org.uk>
To: v j <jvs_a@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Connection Problem
Date: Wed, 31 Jan 2001 03:30:27 -0500 (EST)
Message-ID: <980929827.3a77cd231bd59@webmail.retep.org.uk> (raw)
In-Reply-To: <20010131050947.38119.qmail@web9504.mail.yahoo.com>
References: <20010131050947.38119.qmail@web9504.mail.yahoo.com>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: peter@retep.org.uk, jvs_a@yahoo.com, pgsql-jdbc@postgresql.org
Subject: Re: JDBC Connection Problem
In-Reply-To: <980929827.3a77cd231bd59@webmail.retep.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox