skip to main content
About the Driver : Using the Driver : Connecting from an Application : Connecting Using the JDBC Driver Manager : Registering the Driver
  
Registering the Driver
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.redshift.RedshiftDriver
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.redshift.RedshiftDriver
*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.redshift.RedshiftDriver");
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.redshift.RedshiftDriver");