Re: Postgresql jdbc driver for PG version 9.5 - Mailing list pgsql-jdbc

From Laurenz Albe
Subject Re: Postgresql jdbc driver for PG version 9.5
Date
Msg-id f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at
Whole thread Raw
In response to Re: Postgresql jdbc driver for PG version 9.5  (Poul Kristensen <bcc5226@gmail.com>)
List pgsql-jdbc
Poul Kristensen wrote:
> Hi and thank you for responding but I have to put a class as db.driver value into  String driver and
> then  loaded this way Class.forName(driver);
> It works with the oracle driver. 
> I am using Postgresql JDBC Driver 42.2.25 and Driver.class eg:_ db.driver=Driver.class 
> but is rejected as not executable. It should be very simple. Does anyone use the Driver.class?

I do it all the time, and it works just fine.

Just use "org.postgresql.Driver" as the driver class name and make
sure the JAR file is on your class path.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



pgsql-jdbc by date:

Previous
From: Poul Kristensen
Date:
Subject: Re: Postgresql jdbc driver for PG version 9.5
Next
From: Gabriele Bulfon
Date:
Subject: ssl connection issues