Re: Not able to connect to postgresql database
От | Manohar Bhattarai |
---|---|
Тема | Re: Not able to connect to postgresql database |
Дата | |
Msg-id | AANLkTik2jrpbhS_QrD32GjiyaDveBq-BROeM_IFZh-FZ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Not able to connect to postgresql database (Lew <noone@lewscanon.com>) |
Ответы |
Re: Not able to connect to postgresql database
|
Список | pgsql-jdbc |
Thanks for your replies.
--
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
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 по дате отправления: