Loading a JDBC Driver: call Class.forName() within the code : Driver « Database SQL JDBC « Java
- Java
- Database SQL JDBC
- Driver
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);
}
}
Related examples in the same category