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

setting CLASSPATH of the jdbc jar file

From: Mamoon Rashid <mamoon(at)imtech(dot)res(dot)in>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: setting CLASSPATH of the jdbc jar file
Date: 2007-05-24 11:45:06
Message-ID: 42467.203.90.127.21.1180007106.squirrel@webmail.imtech.res.in (view raw or flat)
Thread:
Lists: pgsql-jdbc
hi all,
i am a newbie using jdbc interface to postgresql.
Information about the machine and pgsql server-
1. system: OS:Enterprise Lnux 4, Server:Apache2
2. PostgreSql 7.4.6

Please tell me that at which prompt(either as a root or postgres user) i
can set CLASSPATH. my jdbc jar file is in
/usr/share/java/pg74.215.jdbc3.jar. i tried as root as well as postgres
user and applied following command:
 export CLASSPATH=/usr/share/java/pg74.215.jdbc3.jar:${CLASSPATH}
After that i looked it with "env" command.it looked well. but when i exit
and reenturned into root as well as postgres user and typed "env" i
couldnt see "CLASSPATH=/usr/share/java/pg74.215.jdbc3.jar".
please suggest how to set classpath and save it.
waiting anxiously
with regard mamoon.

Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2007-05-24 12:04:17
Subject: Re: question about AbstractJdbc2Statement
Previous:From: Luca FerrariDate: 2007-05-24 06:24:48
Subject: question about AbstractJdbc2Statement

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