Loading a JDBC Driver: call Class.forName() within the code
public class Main { public static void main(String[] argv) throws Exception { String driverName = "org.gjt.mm.mysql.Driver"; Class.forName(driverName); } }