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>
To: jorsol@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgresql jdbc driver for PG version 9.5
Date: Fri, 07 Sep 2018 15:36:26 +0200
Message-ID: <47412eb26f973018bda1cd3e69b53bca3ded01c9.camel@cybertec.at> (raw)
In-Reply-To: <CAAOuvVpDwznLqRQF7=LaTBuzkku9NjiWvOt0irJvxkhGMAqxNg@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>

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





view thread (7+ messages)  latest in thread

Message-ID: <47412eb26f973018bda1cd3e69b53bca3ded01c9.camel@cybertec.at>
Permalink:  ../47412eb26f973018bda1cd3e69b53bca3ded01c9.camel@cybertec.at/
Also on:    postgresql.org/message-id/47412eb26f973018bda1cd3e69b53bca3ded01c9.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: <47412eb26f973018bda1cd3e69b53bca3ded01c9.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