Re: Postgresql jdbc driver for PG version 9.5

From: Poul Kristensen <bcc5226(at)gmail(dot)com>
To: jorsol(at)gmail(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Postgresql jdbc driver for PG version 9.5
Date: 2018-09-07 12:52:49
Message-ID: CAAOuvVpDwznLqRQF7=LaTBuzkku9NjiWvOt0irJvxkhGMAqxNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-jdbc

Hi Jorge
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!

TIA
Poul

Den fre. 7. sep. 2018 kl. 11.33 skrev Jorge Solórzano <jorsol(at)gmail(dot)com>:

> Hi Poul,
>
> The jdbc driver is a library, if you run the jar file like java -jar
> postgresql-42.2.5.jar, it will output that is not an executable Java
> program.
>
> You should use it following the conventions of JDBC API (
> https://docs.oracle.com/javase/tutorial/jdbc/).
>
> Regards,
>
> On Fri, Sep 7, 2018 at 9:37 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
> wrote:
>
>> Poul Kristensen wrote:
>> > I am trying to use the jdbc driver in eclipse but get the following
>> > How come?
>> > if the driver is not org.postgresql.Driver,
>> > which should I then use.
>> >
>> > PostgreSQL JDBC Driver 42.2.5
>> > Found in:
>> jar:file:/home/me/lib/postgresql-42.2.5.jar!/org/postgresql/Driver.class
>> >
>> > The PgJDBC driver is not an executable Java program.
>>
>> I have redirected the question to the JDBC list.
>>
>> What does your code look like?
>>
>> Yours,
>> Laurenz Albe
>> --
>> Cybertec | https://www.cybertec-postgresql.com
>>
>>
>>

--
Med venlig hilsen / Best regards
Poul Kristensen
Linux-OS/Virtualizationexpert and Oracle DBA

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2018-09-07 13:36:26 Re: Postgresql jdbc driver for PG version 9.5
Previous Message Jorge Solórzano 2018-09-07 09:32:57 Re: Postgresql jdbc driver for PG version 9.5

Browse pgsql-jdbc by date

  From Date Subject
Next Message Laurenz Albe 2018-09-07 13:36:26 Re: Postgresql jdbc driver for PG version 9.5
Previous Message Jorge Solórzano 2018-09-07 09:32:57 Re: Postgresql jdbc driver for PG version 9.5