Adding a JDBC Driver

See Also

To connect to a database from within the IDE, you need to register an appropriate JDBC driver for the database with the IDE.

If the JDBC driver for your database is not registered with the IDE, you can add the driver in the Services window. Registered drivers ( installed driver, preferred ) are listed under Drivers under the Databases node in the Services window.

To add a JDBC driver:

  1. In the Services window, expand the Databases node.
  2. Right-click the Drivers node and choose New Driver.
  3. In the Add JDBC Driver dialog box, click the Add button to open a file chooser. Then navigate to and select the archive files of the driver that you want to add.

    Once you choose a valid archive file, the Driver Class and the Name fields should be filled in by the IDE.

  4. If the Driver Class field is empty or incorrect, click Find. The IDE will search the archive files that you selected in the previous step and find all classes that implement the JDBC API Driver interface (java.sql.Driver). The Driver Class combo box lists the classes that the IDE finds. Use the combo box to select the driver class that you need.
  5. In the Name field, type a descriptive name for the new driver.

    The IDE uses this name for display purposes.

  6. Click OK to add the new driver to the list of registered drivers.

After the JDBC driver for your database is registered, you can then create a database connection. The IDE uses the database connection information when creating database resources and connecting to a database.

An uninstalled driver node ( preferred driver which is not installed ) is displayed in the Services window if a driver is registered with the IDE but the archive JAR file for the driver is not currently on the IDE's class path. In this case, you should remove the driver or modify the driver's properties to specify the correct location of the JAR file for the driver.

To remove a driver:

To modify a driver's configurations:

See Also
Connecting to a Database

Legal Notices