Previous Topic

Next Topic

Load the JDBC Driver Using Class.forName

The Class.forName() method takes as its argument the fully-qualified class name for the c-treeACE SQL JDBC Driver. If it finds the class, the method loads and links the class, and returns the Class object representing the class.

The fully-qualified class name for the c-treeACE SQL JDBC Driver is ctree.jdbc.ctreeDriver. To load the JDBC Driver, use it as the argument to the Class.forName() method:

// Load the driver
Class.forName ("ctree.jdbc.ctreeDriver");