Re: setting CLASSPATH of the jdbc jar file

From: Leonel <lnunez(at)gmail(dot)com>
To: "Mamoon Rashid" <mamoon(at)imtech(dot)res(dot)in>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: setting CLASSPATH of the jdbc jar file
Date: 2007-05-24 13:01:55
Message-ID: 33c54f810705240601o5145bbbbi19bfae02c15b72d9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 5/24/07, Mamoon Rashid <mamoon(at)imtech(dot)res(dot)in> wrote:
> 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.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

put that export in

/etc/profile

then logout login to get the changes

--
Leonel

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2007-05-24 14:09:56 Re: question about AbstractJdbc2Statement
Previous Message Luca Ferrari 2007-05-24 12:49:51 Re: question about AbstractJdbc2Statement