Re: Not able to connect to postgresql database - Mailing list pgsql-jdbc

From Manohar Bhattarai
Subject Re: Not able to connect to postgresql database
Date
Msg-id AANLkTik2jrpbhS_QrD32GjiyaDveBq-BROeM_IFZh-FZ@mail.gmail.com
Whole thread Raw
In response to Re: Not able to connect to postgresql database  (Lew <noone@lewscanon.com>)
Responses Re: Not able to connect to postgresql database  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-jdbc
Thanks for your replies.

Now i have removed other three jar files and have only one jar i.e. postgresql-8.4-701.jdbc4.jar as told above that it is backward compatible with Postgresql 8.3 and using jdk1.6. I have added the jar in classpath also in the CLASSPATH variable of /etc/environment file. Still I am getting exception : java.lang.ClassNotFoundException: org.postgresql.Driver.

A statement just above the line :
Class.forName("org.postgresql.Driver");
is executed and goes to the catch block.

Now what could be the issue? Still what am i doing wrong or missing?
Please help.

--
Regards,
Manohar Bhattarai (मनोहर भट्टराई)
Blogs:
http://manoharbhattarai.wordpress.com/
http://manoharbhattarai.posterous.com/
http://manoharbhattarai.blogspot.com/
Microblogs:
Twitter :- http://twitter.com/manoharmailme
Identi.ca :- http://identi.ca/manoharbhattarai

pgsql-jdbc by date:

Previous
From: Jason Tesser
Date:
Subject: Re: Found a Bug in latest Driver (I THINK) and pg 8.4
Next
From: "Kevin Grittner"
Date:
Subject: Re: Not able to connect to postgresql database