Re: Postgresql jdbc driver for PG version 9.5

Laurenz Albe <[email protected]>
Newsgroups gmane.comp.db.postgresql.jdbc
Organization Cybertec
Message-ID <[email protected]>
Poul Kristensen wrote:
> Thank you. Yes and it says:
> 
> DB.DRIVER	The fully qualified class name of the JDBC driver. For Java DB, this is org.apache.derby.jdbc.EmbeddedDriver. For MySQL, this is com.mysql.jdbc.Driver.
> 
> How do I get org.postgresql.Driver to put in db.driver(e.g: db.driver=org.postgresql.Driver)? That is my problem! 

The documentation
(https://jdbc.postgresql.org/documentation/head/load.html)
has it:

  Prior to Java 1.6, the driver had to be loaded by the application - either by calling

  Class.forName("org.postgresql.Driver");

  or by passing the driver class name as a JVM parameter.

  java -Djdbc.drivers=org.postgresql.Driver example.ImageViewer

  These older methods of loading the driver are still supported but they are no longer necessary.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.