X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7B0C9D1D078 for ; Sun, 11 Apr 2004 01:48:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27643-03 for ; Sun, 11 Apr 2004 01:48:28 -0300 (ADT) Received: from mail63.csoft.net (unknown [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 9B68AD1CCB0 for ; Sun, 11 Apr 2004 01:48:27 -0300 (ADT) Received: (qmail 4781 invoked by uid 1112); 11 Apr 2004 04:48:27 -0000 Date: Sat, 10 Apr 2004 23:48:27 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: yihuey Cc: pgsql-interfaces@postgresql.org Subject: Re: Compiler 7.4 with--java Error on Redhad AS 2.4.21 In-Reply-To: <4069AE31.1000208@pchome.com.tw> Message-ID: References: <4069AE31.1000208@pchome.com.tw> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/26 X-Sequence-Number: 4847 On Wed, 31 Mar 2004, yihuey wrote: > Hello: > > I have the same question and environment.My Server never install old version postgreSQL. > Pls tell me how to solve. > > Hi, > I am using linux redhat 3.0 and sun jsdk 1.4.2. > I try to compile pg 7.4 --with-java to be able to get the new jdbc > driver. > After calling gmake I get this error: > /pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28: > error: Invalid checked exception class `java.sql.SQLException' in > `throws' clause. The exception must be a subclass of an exception thrown > by This is due to redhat including an existing postgresql.jar file in the classpath or somewhere else in your environment. To build a new version you need to remove this from you compile environment. The other alternative is to simply download a prebuilt binary from http://jdbc.postgresql.org/download.html Kris Jurka