package org.postgresql;
public class DriverClass {
public static String connectClass="org.postgresql.jdbc2.Connection";
}

package org.postgresql;
public class DriverClass {
public static String connectClass="org.postgresql.jdbc1.Connection";
}

Add res clear to example