From: | Barry Lind <barry(at)xythos(dot)com> |
---|---|
To: | chantal(dot)ackermann(at)web(dot)de |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: compile of jdbc driver failed |
Date: | 2002-02-14 17:38:06 |
Message-ID: | 3C6BF5FE.6020201@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Chantal,
The jdbc driver will run under jdk1.4, but will not build under 1.4. I
would recommend getting the prebuilt jar files from jdbc.postgresql.org.
thanks,
--Barry
Chantal Ackermann wrote:
> hello all,
>
> if the following problem is already documented somewhere I'm sorry to bother
> this list with it. I would be glad if someone could point me to the right
> direction.
>
> I want to install the postgresgl 7.2 configured with
> --enable-multibyte
> --with-java.
>
> configure runs fine but ant fails to compile the driver. I have included the
> error messages in this mail (see further down).
>
> I have J2SDK1.4rcb91 Standard Edition installed. ant says that it will build
> an Enterterprise Edition driver. I suppose that's because javax.sql is
> included in 1.4? I did not check what's in my installation for sure, I assume
> there are the same classes as listed in the appropriate API documentation.
> But for example, there is no javax.transaction.RollbackException. There is
> only a javax.transaction.TransactionRolledbackException.
>
> Is the driver not compatible with jdk 1.4, yet? or do I have to install
> another java package (some more javax.sql, or another version??) - if so
> which one?
>
> thanx for any help!
>
> Chantal
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ANT MESSAGE
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> prepare:
> [mkdir] Created dir: /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build
> [mkdir] Created dir: /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/jars
>
> check_versions:
>
> driver:
> [copy] Copying 1 file to
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql
> [echo] Configured build for the JDBC2 Enterprise edition driver
>
> compile:
> [javac] Compiling 67 source files to
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57:
> cannot resolve symbol
> [javac] symbol : class RollbackException
> [javac] location: package transaction
> [javac] import javax.transaction.RollbackException;
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60:
> org.postgresql.jdbc2.ResultSet should be declared abstract; it does not
> define getURL(int) in org.postgresql.jdbc2.ResultSet
> [javac] public class ResultSet extends org.postgresql.ResultSet
> implements java.sql.ResultSet
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java:25:
> org.postgresql.jdbc2.Statement should be declared abstract; it does not
> define getMoreResults(int) in org.postgresql.jdbc2.Statement
> [javac] public class Statement extends org.postgresql.Statement
> implements java.sql.Statement
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java:37:
> org.postgresql.jdbc2.Connection should be declared abstract; it does not
> define setHoldability(int) in org.postgresql.jdbc2.Connection
> [javac] public class Connection extends org.postgresql.Connection
> implements java.sql.Connection
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:40:
> org.postgresql.jdbc2.DatabaseMetaData should be declared abstract; it does
> not define supportsSavepoints() in org.postgresql.jdbc2.DatabaseMetaData
> [javac] public class DatabaseMetaData implements java.sql.DatabaseMetaData
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32:
> org.postgresql.jdbc2.PreparedStatement should be declared abstract; it does
> not define setURL(int,java.net.URL) in org.postgresql.jdbc2.PreparedStatement
> [javac] public class PreparedStatement extends Statement implements
> java.sql.PreparedStatement
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42:
> org.postgresql.jdbc2.CallableStatement should be declared abstract; it does
> not define registerOutParameter(java.lang.String,int) in
> org.postgresql.jdbc2.CallableStatement
> [javac] public class CallableStatement extends
> org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/largeobject/PGblob.java:26:
> org.postgresql.largeobject.PGblob should be declared abstract; it does not
> define setBytes(long,byte[]) in org.postgresql.largeobject.PGblob
> [javac] public class PGblob implements java.sql.Blob
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26:
> org.postgresql.largeobject.PGclob should be declared abstract; it does not
> define setString(long,java.lang.String) in org.postgresql.largeobject.PGclob
> [javac] public class PGclob implements java.sql.Clob
> [javac] ^
> [javac]
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70:
> org.postgresql.xa.ClientConnection should be declared abstract; it does not
> define setHoldability(int) in org.postgresql.xa.ClientConnection
> [javac] final class ClientConnection
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 10 errors
>
> BUILD FAILED
>
> /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build.xml:72: Compile failed,
> messages should have been provided.
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2002-02-14 18:16:02 | Re: Character Set |
Previous Message | Chantal Ackermann | 2002-02-14 10:37:26 | Re: compile of jdbc driver failed |