Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePFQr-0004ah-CD for pgsql-jdbc@arkaria.postgresql.org; Wed, 13 Dec 2017 22:23:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePFQq-000842-Qi for pgsql-jdbc@arkaria.postgresql.org; Wed, 13 Dec 2017 22:23:16 +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.84_2) (envelope-from ) id 1ePFQq-00083s-H5 for pgsql-jdbc@lists.postgresql.org; Wed, 13 Dec 2017 22:23:16 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ePFQn-0002Ar-DF for pgsql-jdbc@postgresql.org; Wed, 13 Dec 2017 22:23:15 +0000 Received: by mail-pf0-x22b.google.com with SMTP id a90so2170451pfk.1 for ; Wed, 13 Dec 2017 14:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee-org.20150623.gappssmtp.com; s=20150623; h=subject:references:cc:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=VkJdCW4wnghHy65YmpSDPMT99zSYqkIl2CxUjAJKwrg=; b=B4oAxnGmLtRW2xYaCmva3/66hKM0FzVurmcja66yJnixguqd4DaZ7poAxo3Wl4GACd 9OnI+8JOAHlFrDF9NZgfyE9vDpKqLUgHLUClTOvEtU9sIRT8bh8/CCyy+izT21mZ/Lap uiqiHeAIa1BzGcrt5RJHuPM+/A6BufWBC6CQNpEGTInQPL2uLLik7eCXRLzsA/BhArw5 yGdLRqdyOEg3S6vwP2RBfiLy9Y6cZNhH2cT02EzYc4erWcCCI/3NsYxIuhsYQsUCfhWh iXRJZnKlOgh/yEF1g6n0EeypaLksebqfhi+hcY5iuin9onn1S2OkY/0aezto0EVzeW2I 3ggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=VkJdCW4wnghHy65YmpSDPMT99zSYqkIl2CxUjAJKwrg=; b=UH0+hRuQeIJn0Rt5Hg7UKK3kpl7KqpbHnAv5ZSFVM8TSNqpQovd6xt6aD0QLp1KhCj z34YwNyu1GWjCelHxdlHkWOog+aiA3WZXCuWQj3wuT9N+oxkg15UyZLfzW2+RX7emhc7 Id5soOAz0DzT+ke4q8qvrHNzpUw2xAZHC0/Rho5ZwNPwxcViSWbzhVFeIn4Bxj+b189Z MBdavtylcVBhuO+/y3A4i73aNtNQEYm9Tf/nKYdHYqPug6o3l0DnCzLcxW2qXALXdvoQ MkxpR+ZFj/nx8NjjvaoSpqnB8mzjGwFlov3i8rhWPHw6PrEeniyuwy8B2LfS4olmuNOW Kwuw== X-Gm-Message-State: AKGB3mK35pWqWCQqmsKV+m6fcoCS4YiGW9IOoJ3PB7+uPIIGoBeMCMwC /Jd5G2TjFURjY3wYiUjE9Up0M/fi X-Google-Smtp-Source: ACJfBovgBkFzQbCLE1f7qf6vyGCZlTy/OIDGBNTzOevBUiSZqVNsQeW9EMKkUdmQWgsFcsHQlQTBoA== X-Received: by 10.101.76.3 with SMTP id u3mr6500395pgq.136.1513203789350; Wed, 13 Dec 2017 14:23:09 -0800 (PST) Received: from [192.168.1.15] (45-19-167-161.lightspeed.irvnca.sbcglobal.net. [45.19.167.161]) by smtp.googlemail.com with ESMTPSA id r71sm5362926pfd.144.2017.12.13.14.23.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 14:23:08 -0800 (PST) Subject: Re: Migrating from Sql Server to PostgreSQL - postgres drivers References: <1EE0CF2A331C5848B726E0C2C8B57202219067C6@UK2P-ERFMMBX10.ERF.thomson.com> Cc: pgsql-jdbc@postgresql.org From: "Igal @ Lucee.org" Message-ID: Date: Wed, 13 Dec 2017 14:23:06 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------BD757693564C10D895EC7C09" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------BD757693564C10D895EC7C09 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 12/13/2017 11:23 AM, Mark Rotteveel wrote: > On 2017-12-13 19:03, Zahid Iqbal wrote: >> You need to place the driver under JDK/JRE-HOME/ext/lib path (the MTK >> 51 contains classpath reference for an old version of PG JDBC driver) >> so that JVM picks the driver in default classpath (alternatively you >> can place PG JDBC driver ver 9.4-1208 under MTK lib path). > > JDBC drivers don't belong in lib/ext, and the lib/ext extension > mechanism has been deprecated in Java 8 and removed in Java 9. You can put the JAR file of the driver anywhere on the classpath. I'm not familiar with the MTK, but if MTK has a lib directory then that sounds like the right place to go. Also, you can probably use a newer driver from https://jdbc.postgresql.org/download.html -- there have been quite a few changes since the aforementioned version. Igal Sapir Lucee Core Developer Lucee.org --------------BD757693564C10D895EC7C09 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/13/2017 11:23 AM, Mark Rotteveel wrote:
On 2017-12-13 19:03, Zahid Iqbal wrote:
You need to place the driver under JDK/JRE-HOME/ext/lib path (the MTK
51 contains classpath reference for an old version of PG JDBC driver)
so that JVM picks the driver in default classpath (alternatively you
can place PG JDBC driver ver 9.4-1208 under MTK lib path).

JDBC drivers don't belong in lib/ext, and the lib/ext extension mechanism has been deprecated in Java 8 and removed in Java 9.

You can put the JAR file of the driver anywhere on the classpath.  I'm not familiar with the MTK, but if MTK has a lib directory then that sounds like the right place to go.

Also, you can probably use a newer driver from https://jdbc.postgresql.org/download.html -- there have been quite a few changes since the aforementioned version.

Igal Sapir
Lucee Core Developer
Lucee.org

--------------BD757693564C10D895EC7C09--