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

Re: Not able to connect to postgresql database

From: Manohar Bhattarai <manoharbhattarai(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Not able to connect to postgresql database
Date: 2010-06-02 13:40:15
Message-ID: AANLkTik2jrpbhS_QrD32GjiyaDveBq-BROeM_IFZh-FZ@mail.gmail.com (view raw or flat)
Thread:
Lists: 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

In response to

Responses

pgsql-jdbc by date

Next:From: Kevin GrittnerDate: 2010-06-02 13:49:35
Subject: Re: Not able to connect to postgresql database
Previous:From: Jason TesserDate: 2010-06-02 10:10:39
Subject: Re: Found a Bug in latest Driver (I THINK) and pg 8.4

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