Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XtgDH-0006Zh-3d for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Nov 2014 17:17:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XtgDF-0000qG-Mz for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Nov 2014 17:17:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XtgDD-0000q7-JA for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 17:17:07 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XtgD8-0000jU-Re for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 17:17:05 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id sAQHGrH06087 for ; Wed, 26 Nov 2014 09:16:53 -0800 Message-ID: <54760B00.30101@hogranch.com> Date: Wed, 26 Nov 2014 09:16:48 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: Fwd: Rocks 6.1.1 with JDBC connection - What should be wrong? References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010703080208020700090500" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------010703080208020700090500 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/25/2014 7:18 AM, Luciana Campos wrote: > I am having trouble configuring JDBC4 with Rocks 6.1.1. > It's possible to connect database with 'psql', but using the JDBC > connection, I got this error: > > Exception in thread "main" > java.lang.NoClassDefFoundError: org/postgresql/jdbc4/Jdbc4Connection > ..... > postgresql-9.2-1004.jdbc41.jar thats not the latest driver, http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc41.jar is. ignore the 9.3 vs 9.2, they are the same thing. 1104 is the current version. -- john r pierce 37N 122W somewhere on the middle of the left coast --------------010703080208020700090500 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 11/25/2014 7:18 AM, Luciana Campos wrote:
I am having trouble configuring JDBC4 with Rocks 6.1.1.
It's possible to connect database with 'psql', but using the JDBC connection, I got this error:

Exception in thread "main" 
java.lang.NoClassDefFoundError: org/postgresql/jdbc4/Jdbc4Connection
.....
postgresql-9.2-1004.jdbc41.jar

thats not the latest driver, http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc41.jar is.  ignore the 9.3 vs 9.2, they are the same thing.   1104 is the current version.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast
--------------010703080208020700090500--