X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 75CE4329FCB for ; Thu, 30 Sep 2004 06:57:41 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35119-09 for ; Thu, 30 Sep 2004 05:57:31 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by svr1.postgresql.org (Postfix) with ESMTP id 29DA3329FB9 for ; Thu, 30 Sep 2004 06:57:29 +0100 (BST) Received: by mproxy.gmail.com with SMTP id 80so2161240rnk for ; Wed, 29 Sep 2004 22:57:27 -0700 (PDT) Received: by 10.38.1.72 with SMTP id 72mr338708rna; Wed, 29 Sep 2004 22:57:27 -0700 (PDT) Received: by 10.38.179.21 with HTTP; Wed, 29 Sep 2004 22:57:27 -0700 (PDT) Message-ID: <2ca133d2040929225759e4cb88@mail.gmail.com> Date: Thu, 30 Sep 2004 00:57:27 -0500 From: KrishnaPradeep Tamma Reply-To: KrishnaPradeep Tamma To: pgsql-admin@postgresql.org Subject: Compilation error with --with-java option Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/285 X-Sequence-Number: 14988 hi, I was able to successfully compile and run postgresql-7.4.5 with out "--with-java" option on a Redhat Linux machine. But when I enable the "--with-java" option I am getting the following error message. ************************************************************************* gmake[3]: Entering directory `/scratch/postgresql-7.4.5/src/interfaces/jdbc' /usr/bin/ant -buildfile ./build.xml all Buildfile: ./build.xml all: prepare: [mkdir] Created dir: /scratch/postgresql-7.4.5/src/interfaces/jdbc/build [mkdir] Created dir: /scratch/postgresql-7.4.5/src/interfaces/jdbc/jars check_versions: check_driver: driver: [copy] Copying 1 file to /scratch/postgresql-7.4.5/src/interfaces/jdbc/org/postgresql [echo] Configured build for the JDBC3 edition driver with NO SSL compile: [javac] Compiling 77 source files to /scratch/postgresql-7.4.5/src/interfaces/jdbc/build [javac] /scratch/postgresql-7.4.5/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 `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'. [javac] public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException [javac] ^ [javac] /scratch/postgresql-7.4.5/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java:23: error: Invalid checked exception class `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'. [javac] public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException [javac] ^ [javac] /scratch/postgresql-7.4.5/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29: error: Method `org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)' was defined with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class `org.postgresql.jdbc2.optional.PoolingDataSource'. [javac] static Jdbc3PoolingDataSource getDataSource(String name) [javac] ^ [javac] /scratch/postgresql-7.4.5/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java:23: error: Invalid checked exception class `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'. [javac] public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException [javac] ^ [javac] 4 errors BUILD FAILED ************************************************************************ Help is anticipated Thank you, pradeep