MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {
    public static void main(String[] args) {
        try {
            String className = "org.gjt.mm.mysql.Driver";
            Class driverObject = Class.forName(className);
            System.out.println("driverObject=" + driverObject);
            System.out.println("your installation of JDBC Driver OK.");
        } catch (Exception e) {
            System.out.println("Failed: JDBC Driver Error: " + e.getMessage());
        }

    }
}