skip to main content
Getting Started : Connecting with the JDBC Driver Manager : Registering the Driver with the Driver Manager
  

Try DataDirect Drivers Now

Registering the Driver with the Driver Manager

Important: If using Java SE 6 or higher, you do not need to register the driver and can skip this step. Java SE 6 and higher automatically registers the driver with the JDBC Driver Manager.
Registering the driver with the JDBC Driver Manager allows the driver manager to load the driver. The class name for the driver is:
*com.ddtek.jdbc.sparksql.SparkSQLDriver
You can register the driver with the JDBC Driver Manager using any of the following methods:
*Method 1: Set the Java system property jdbc.drivers using the Java -D option. The jdbc.drivers property is defined as a colon-separated list of driver class names. For example:
java -Djdbc.drivers=com.ddtek.jdbc.sparksql.SparkSQLDriver
*Method 2: Set the Java property jdbc.drivers from within your Java application or applet. Include the following code fragment in your Java application or applet, and call DriverManager.getConnection(). For example:
Properties p = System.getProperties();
p.put ("jdbc.drivers",
"com.ddtek.jdbc.sparksql.SparkSQLDriver");
System.setProperties (p);
*Method 3: Explicitly load the driver class using the standard Class.forName() method. Include the following code fragment in your application or applet and call DriverManager.getConnection(). For example:
Class.forName("com.ddtek.jdbc.sparksql.SparkSQLDriver");