[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Urgent: jdbc connection to PostGRESQL



well .. the best thing to do is this ...
edit ur .bash_profile file ... in ur home directory.
add a line somewhere near ur PATH statement like this
..
 CLASSPATH = "/usr/lib/pgsql:./"

then go to the export line somewhere near the middle
of bottom of the same line .. and add CLASSPATH to it
... something like this ...

export PATH USERNAME CLASSPATH

after this write and save it.
reload the profile file into ur shell (u cud run bash
again ... or exit and relogin)

to see if it has worked ... type ${CLASSPATH} at the
shell prompt and hit enter ... ur classpath will come
on the screen ...
thats it ...

of course .. this is assuming that /usr/lib/pgsql is
ur pgsql library directory ... sometimes it cud be
even /usr/local/lib/pgsql or even /usr/local/pgsql/lib
.. depending on ur installation. edit the classpath
statement accordgly.

mrmojorisin
--- Linux List  <linux-prog@xxxxxxxxx> wrote:
> does classPath mean classpath or path.
> The postgresql docs say something like export the
> postgresql.jar file to your CLASSPATH with export.
> i think they refer to the PATH.
> Please tell me how to export xxx.jar or any file for
> that
> matter to the classpath.
> 
> On Tue, 18 Jul 2000 23:39:30 -0700 (PDT)
>  Rajeev Joseph <rajeevjsv@xxxxxxxxx> wrote:
> > *This message was transferred with a trial version
> of
> > CommuniGate(tm) Pro*
> > The jdbc drivers are available in the
> /usr/lib/pgsql
> > directory as jdbc1.2-6.5.jar . rename it as
> > postgresql.jar and export to the classpath. (Vinu)
> > 
> > Its more useful to dl the source.tgz files and do
> a
> > javadoc on the org.postgresql.* package and learn
> the
> > API since the documentation with the pasgkage is
> > sparse and really unreadble.
> > 
> > mrmojorisin
> > --- Linux List  <linux-prog@xxxxxxxxx> wrote:
> > > hi
> > >   Found the drivers at
> > >    http://www.retep.org.uk/postgres/
> > >  some one may find it useful.Didn't try it yet.
> > > vinu
> > > 
> > > On Wed, 12 Jul 2000 17:06:09 +0530
> > >  jayant kumar <jk2k@xxxxxxxxxxxxx> wrote:
> > > > *This message was transferred with a trial
> version
> > > of
> > > > CommuniGate(tm) Pro*
> > > >          The driver for PostGRESQL is there in
> > > PCQuest. I
> > > > have seen it but 
> > > > have not used it. It would be better if you
> search
> > > for
> > > > "postgresql.jar" 
> > > > file on google.com. Put it somewhere in some
> > > directory
> > > > and add it to the 
> > > > CLASSPATH. It should work. It works on my PC!!
> > > > 
> > > >          -------Jayant
> > > > 
> > > > At 11:31 AM 7/11/00 +0530, you wrote:
> > > > >hi all,
> > > > >    I tried the jdbc connection to the
> PostGRESQL
> > > > server.
> > > > >The HOWTO says that u will have a file called
> > > > Postgresql.jar
> > > > >,which you have to export to ur classpath.
> > > > >I didn't find such a file anywhere in my
> > > installation.
> > > > >When i run the program i get an exception
> that
> > > the
> > > > >driver is not found but the docs says u do
> have a
> > > driver
> > > > >shipped with the PostGresql package.
> > > > >I installed all the postgresql
> > > > packages(jdbc,perl,phython,tcl,etc).Also
> > > > >i found the
> > > > >perl example working very well.
> > > > >Any pointers,help.
> > > > >Thanx in advance
> > > > >vinu
> > > > >
> > > > >
> > > >
> > >
> >
>
>-----------------------------------------------------------------------
> > > > >LIP is all for free speech.  But it was
> created
> > > for a
> > > > purpose - to help
> > > > >people discuss technical programming related
> > > issues
> > > > about Linux.  If
> > > > >your messages are counterproductive to this
> > > purpose,
> > > > your privileges to
> > > > >submit messages can and will be revoked.
> > > > 
> > > > 
> > > >
> > >
> >
>
-----------------------------------------------------------------------
> > > > The LIP mailing list archives are available
> at:
> > > >
> > >
> >
>
http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers
> > > 
> > > 
> > >
> >
>
-----------------------------------------------------------------------
> > > The LIP mailing list archives are available at:
> > >
> >
>
http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get Yahoo! Mail ? Free email you can access from
> > anywhere!
> > http://mail.yahoo.com/
> > 
> >
>
-----------------------------------------------------------------------
> > LIP is all for free speech.  But it was created
> for a
> > purpose - to help
> > people discuss technical programming related
> issues about
> > Linux.  If
> > your messages are counterproductive to this
> purpose, your
> > privileges to
> > submit messages can and will be revoked.
> 
> 
>
-----------------------------------------------------------------------
> For more information on the LIP mailing list see:
> http://lists.linux-india.org/lists/LIP


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/