Depending on the use case of the jdbc driver, it may be possible to skip specifying a driver class. However, there are use cases when specifying a driver class is required.
The instructions below can be used to determine the driver class from the jdbc driver file itself.
- Open the jdbc driver file as an archive file. If the driver is in a jar format and you do not have a program that can open a jar archive, then modify the file extension to a zip before opening.
- Navigate to
META-INF/services/within the archive.
- Extract the file named
java.sql.Driverin a text editor
The list of valid driver classes are listed in the
java.sql.Driver file. If the
java.sql.Driver file is not present, the file is not a valid driver.