pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Poul Kristensen <bcc5226@gmail.com>
Cc: Jorge Solórzano <jorsol@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgresql jdbc driver for PG version 9.5
Date: Mon, 10 Sep 2018 09:39:51 +0200
Message-ID: <f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at> (raw)
In-Reply-To: <CAAOuvVonc+Gand74Yd9uxQBHOKy0=upyZCuGL=gPdykQNMVbSw@mail.gmail.com>
References: <CAAOuvVquuu-GrZ5aSyNoariz1XSA25Y9yae8399Z5=rg-tDjJQ@mail.gmail.com>
	<e0c69fd8a486c0172f3a6a2d1c5f3ad208b33aab.camel@cybertec.at>
	<CA+cVU8PGGzmQA+bFre5mQkKqghkqpFGNkFxJMhd8FsCj6sFczQ@mail.gmail.com>
	<CAAOuvVpDwznLqRQF7=LaTBuzkku9NjiWvOt0irJvxkhGMAqxNg@mail.gmail.com>
	<47412eb26f973018bda1cd3e69b53bca3ded01c9.camel@cybertec.at>
	<CAAOuvVonc+Gand74Yd9uxQBHOKy0=upyZCuGL=gPdykQNMVbSw@mail.gmail.com>

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





view thread (7+ messages)

Message-ID: <f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at>
Permalink:  ../f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at/
Also on:    postgresql.org/message-id/f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, bcc5226@gmail.com, jorsol@gmail.com, pgsql-jdbc@postgresql.org
  Subject: Re: Postgresql jdbc driver for PG version 9.5
  In-Reply-To: <f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox