Determining correct Driver Class per Version

How do I determine the driver class for JDBC driver? It appears that it keeps changing between com.vertica.Driver to com.vertica.jdbc.Driver

Comments

  • unzip Vertica jdbc driver (jar file) and look in "META-INF/services/java.sql.Driver".


    Example
    $ mkdir -p /tmp/jar && unzip -d /tmp/jar /opt/vertica/java/lib/vertica-jdk5-6.1.3-0.jar
    Archive: /opt/vertica/java/lib/vertica-jdk5-6.1.3-0.jar
    creating: /tmp/jar/META-INF/
    inflating: /tmp/jar/META-INF/MANIFEST.MF
    creating: /tmp/jar/META-INF/services/
    creating: /tmp/jar/com/
    ...

    $ cat /tmp/jar/META-INF/services/java.sql.Driver
    com.vertica.jdbc.Driver

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file