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 = "oracle.jdbc.driver.OracleDriver";
            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());
        }
    }
}