ClassNotFoundException with PostgreSQL and JDBC
问题 I am having some difficulty in making connectivity with Java and PostgreSQL Database.I have download the JDBC4 Postgresql Driver, Version 9.2-1002 driver and properly set the application ClassPath. My code is as under import java.sql.*; public class JavaPostGreSQLConnectivity { public static void main(String[] args) { DB db = new DB(); db.dbConnect("jdbc:postgresql://127.0.0.1:5432/TestDB", "postgres","pwd"); } } class DB { public DB() {} public void dbConnect(String db_connect_string, String