I am having a problem using Postgresql.
We used to put all jar files in the lib folder of our project.
Before using postgresql, we were using oracle.
The Oracle jar file i.e. ojdbc14.jar was placed in the same lib folder as mentioned above.
The problem is in case of postgresql it always shows ClassNotFoundException.
I have already put jar file of postgresql in the libv folder, but it's just not working.
Please make sure the Class which you are using for making a connection is available in the jar your are using for postgresql.
After that put it in the correct place so that your application can access it, you may either put it in the lib directory or add jar's path in classpath.