JDBC driver

Lists: pgsql-jdbc
From: "Wong, RYM (Richard)" <R(dot)Y(dot)M(dot)Wong(at)rl(dot)ac(dot)uk>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC driver
Date: 2005-02-16 12:50:18
Message-ID: 4CCDA61615BC0342B52F3D30F88134E20AC941@exchange31.fed.cclrc.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hi,

I have a problem of building a JDBC driver in LINUX environment.

Postgresql server: 7.4.3
The version of Apache Ant: 1.5.2-23
Linux: 2.4.21-27.0.2.EL #1 Wed Jan 12 23:35:46 EST 2005 i686 athlon i386 GNU/Linux
The version of JDBC driver to be built: 3

Error messages:
*********************************************
Buildfile: ./build.xml

all:

prepare:

check_versions:

check_driver:

driver:

compile:
[javac] Compiling 77 source files to /tmp/jdbc-driver/build
[javac] /tmp/jdbc-driver/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] /tmp/jdbc-driver/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] /tmp/jdbc-driver/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] /tmp/jdbc-driver/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
*****************************************************
Any idea of fixing this?
Thank you for your attention.
Richard

***********************************************************************
Richard Wong
Atlas Centre
Rutherford Appleton Laboratory
Oxfordshire
United Kingdom
OX11 0QX

Telephone: 01235-446075
Email: r(dot)y(dot)m(dot)wong(at)rl(dot)ac(dot)uk
***********************************************************************
The contents of this email are sent in confidence for the use of the intended recipient only. If you are not one of the intended recipients do not take action on it or show it to anyone else, but return this email to the sender and delete your copy of it.


From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "Wong, RYM (Richard)" <R(dot)Y(dot)M(dot)Wong(at)rl(dot)ac(dot)uk>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC driver
Date: 2005-02-16 19:45:01
Message-ID: 4213A2BD.3030103@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Wong, RYM (Richard) wrote:

> I have a problem of building a JDBC driver in LINUX environment.

What version of the driver are you trying to build?

-O


From: John R Pierce <pierce(at)hogranch(dot)com>
To: "Wong, RYM (Richard)" <R(dot)Y(dot)M(dot)Wong(at)rl(dot)ac(dot)uk>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC driver
Date: 2005-02-16 20:28:00
Message-ID: 4213ACD0.3050409@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Oliver Jowett wrote:
> Wong, RYM (Richard) wrote:
>
>> I have a problem of building a JDBC driver in LINUX environment.
>
>
> What version of the driver are you trying to build?

and equally important, what version of the J2SDK is installed?

$ java -version
java version "1.4.2_04"
......

$ which javac
/usr/java/j2sdk1.4.2_04/bin/javac