import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;
class Demopsql{
Demopsql()
{
try {
Class.forName("org.postgresql.Driver");
} catch (ClassNotFoundException e) {
System.out.println("Where is your PostgreSQL JDBC Driver? "
+ "Include in your library path!");
e.printStackTrace();
return;
}
}
where should it be paste postgresql-42.1.4.jar or extracted at where?
so that program won't throw class not found exception.