Re: Postgresql jdbc driver for PG version 9.5

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Postgresql jdbc driver for PG version 9.5
Дата
Msg-id f8a60d9c7e71951ea4343343ee573cc5d7156830.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Postgresql jdbc driver for PG version 9.5  (Poul Kristensen <bcc5226@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Poul Kristensen
Дата:
Сообщение: Re: Postgresql jdbc driver for PG version 9.5
Следующее
От: Gabriele Bulfon
Дата:
Сообщение: ssl connection issues