Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyGw8-0005ZJ-8n for pgsql-jdbc@arkaria.postgresql.org; Fri, 07 Sep 2018 13:36:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fyGw6-0006qv-P6 for pgsql-jdbc@arkaria.postgresql.org; Fri, 07 Sep 2018 13:36:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyGw6-0006qo-J6 for pgsql-jdbc@lists.postgresql.org; Fri, 07 Sep 2018 13:36:34 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fyGw2-0003Ug-1y for pgsql-jdbc@postgresql.org; Fri, 07 Sep 2018 13:36:34 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id A08E1493A2; Fri, 7 Sep 2018 15:36:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 4PuKF_xzKYM7; Fri, 7 Sep 2018 15:36:27 +0200 (CEST) Message-ID: <47412eb26f973018bda1cd3e69b53bca3ded01c9.camel@cybertec.at> Subject: Re: Postgresql jdbc driver for PG version 9.5 From: Laurenz Albe To: Poul Kristensen , jorsol@gmail.com Cc: pgsql-jdbc@postgresql.org Date: Fri, 07 Sep 2018 15:36:26 +0200 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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