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?