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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces pgsql-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/
From | Date | Subject | |
---|---|---|---|
Next Message | v j | 2001-02-01 13:16:10 | JDBC APPLET Problem |
Previous Message | v j | 2001-01-31 05:09:47 | JDBC Connection Problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Crotwell | 2001-01-31 16:35:58 | PreparedStatement suggestion |
Previous Message | v j | 2001-01-31 05:09:47 | JDBC Connection Problem |