I am trying to establish a JDBC connection with a PostgreSQL database. The following line of code fails.
Class.forName("org.postgresql.Driver").newInstance();
Exception:
Exception in thread "main" java.lang.ClassNotFoundException: org.postgresql.Driver
I have installed Post
greSQL and it is workiing perfectly fine.
What is the problem here.